Forums     Knowledge Base     OfficeWriter Online     
 
 
This documentation is for
OfficeWriter v3.8.1
.NET Platform

View Docs for Another
Version or Platform

Programmer's Reference > WordApplication API > Element > GetPosition

GetPosition Method



Signature:

public Position GetPosition ( int offset )

Description:

Returns a Position object that represents the location specified by the offset. The Position object can be used similar to a cursor.

Parameters:

offset     An int representing the relative offset from the start of this Element to get the Position for.

Returns:

Position A Position object that represents the location specified by the offset.

Examples:

[csharp]
Position oPosition = e.GetPosition();
[vbnet]
Dim oPosition As Position = e.GetPosition()



Copyright 2007 © SoftArtisans, Inc. All Rights Reserved.