Class TextPosition
Represents text position.
Inheritance
Inherited Members
Namespace: Telerik.Windows.Documents.Fixed.Text
Assembly: Telerik.Windows.Documents.Fixed.dll
Syntax
public class TextPosition
Constructors
TextPosition(RadFixedDocument)
Initializes a new instance of the TextPosition class.
Declaration
public TextPosition(RadFixedDocument document)
Parameters
RadFixedDocument
document
The document. |
TextPosition(RadFixedPage)
Initializes a new instance of the TextPosition class.
Declaration
public TextPosition(RadFixedPage page)
Parameters
RadFixedPage
page
The page. |
TextPosition(RadFixedPage, Int32)
Initializes a new instance of the TextPosition class.
Declaration
public TextPosition(RadFixedPage page, int index)
Parameters
RadFixedPage
page
The page. |
System.Int32
index
The index. |
TextPosition(TextPosition)
Initializes a new instance of the TextPosition class.
Declaration
public TextPosition(TextPosition position)
Parameters
TextPosition
position
The position. |
Properties
Index
Gets the index of the position.
Declaration
public int Index { get; }
Property Value
System.Int32
The index. |
Page
Gets the page that contains the position.
Declaration
public RadFixedPage Page { get; }
Property Value
RadFixedPage
The page. |
Methods
Equals(Object)
Determines whether the specified System.Object is equal to the current System.Object.
Declaration
public override bool Equals(object obj)
Parameters
System.Object
obj
The System.Object to compare with the current System.Object. |
Returns
System.Boolean
True if the specified System.Object is equal to the current System.Object; otherwise, false. |
Overrides
GetHashCode()
Serves as a hash function for a particular type.
Declaration
public override int GetHashCode()
Returns
System.Int32
A hash code for the current System.Object. |
Overrides
GetWordBoundingRect()
Returns the bounding rectangle of the current word.
Declaration
public Rect GetWordBoundingRect()
Returns
System.Windows.Rect
The bounding rectangle of the current word. |
MoveLineDown()
Moves line down.
Declaration
public bool MoveLineDown()
Returns
System.Boolean
|
MoveLineUp()
Moves line up.
Declaration
public bool MoveLineUp()
Returns
System.Boolean
|
MoveToCurrentWordEnd()
Moves to current word end.
Declaration
public bool MoveToCurrentWordEnd()
Returns
System.Boolean
|
MoveToCurrentWordStart()
Moves to current word start.
Declaration
public bool MoveToCurrentWordStart()
Returns
System.Boolean
|
MoveToEndOfDocument()
Moves to end of document.
Declaration
public bool MoveToEndOfDocument()
Returns
System.Boolean
|
MoveToLineEnd()
Moves to line end.
Declaration
public bool MoveToLineEnd()
Returns
System.Boolean
|
MoveToLineStart()
Moves to line start.
Declaration
public bool MoveToLineStart()
Returns
System.Boolean
|
MoveToNextPosition()
Moves to next position.
Declaration
public bool MoveToNextPosition()
Returns
System.Boolean
|
MoveToNextWord()
Moves to next word.
Declaration
public bool MoveToNextWord()
Returns
System.Boolean
|
MoveToPosition(TextPosition)
Moves to position.
Declaration
public bool MoveToPosition(TextPosition position)
Parameters
TextPosition
position
The position. |
Returns
System.Boolean
|
MoveToPreviousPosition()
Moves to previous position.
Declaration
public bool MoveToPreviousPosition()
Returns
System.Boolean
|
MoveToPreviousWord()
Moves to previous word.
Declaration
public bool MoveToPreviousWord()
Returns
System.Boolean
|
MoveToStartOfDocument()
Moves to start of document.
Declaration
public bool MoveToStartOfDocument()
Returns
System.Boolean
|
OnPositionChanged()
Called when TextPosition is changed.
Declaration
protected virtual void OnPositionChanged()
OnPositionChanging()
Called when TextPosition is changing.
Declaration
protected virtual void OnPositionChanging()
ToString()
Returns a string that represents the current object.
Declaration
public override string ToString()
Returns
System.String
A string that represents the current object. |
Overrides
Events
PositionChanged
Occurs when TextPosition is changed.
Declaration
public event EventHandler PositionChanged
Event Type
System.EventHandler
|
PositionChanging
Occurs when TextPosition is changing.
Declaration
public event EventHandler PositionChanging
Event Type
System.EventHandler
|
Operators
Equality(TextPosition, TextPosition)
Compares two text positions.
Declaration
public static bool operator ==(TextPosition left, TextPosition right)
Parameters
TextPosition
left
Left text position. |
TextPosition
right
Right text position. |
Returns
System.Boolean
Returns if the two positions are equal. |
GreaterThan(TextPosition, TextPosition)
Compares two text positions.
Declaration
public static bool operator>(TextPosition left, TextPosition right)
Parameters
TextPosition
left
Left text position. |
TextPosition
right
Right text position. |
Returns
System.Boolean
Returns if the left position is greater than the right position. |
GreaterThanOrEqual(TextPosition, TextPosition)
Compares two text positions.
Declaration
public static bool operator >=(TextPosition left, TextPosition right)
Parameters
TextPosition
left
Left text position. |
TextPosition
right
Right text position. |
Returns
System.Boolean
Returns if the left position is greater than or equals to the right position. |
Inequality(TextPosition, TextPosition)
Compares two text positions.
Declaration
public static bool operator !=(TextPosition left, TextPosition right)
Parameters
TextPosition
left
Left text position. |
TextPosition
right
Right text position. |
Returns
System.Boolean
Returns if the two positions are not equal. |
LessThan(TextPosition, TextPosition)
Compares two text positions.
Declaration
public static bool operator <(TextPosition left, TextPosition right)
Parameters
TextPosition
left
Left text position. |
TextPosition
right
Right text position. |
Returns
System.Boolean
Returns if the left position is less than the right position. |
LessThanOrEqual(TextPosition, TextPosition)
Compares two text positions.
Declaration
public static bool operator <=(TextPosition left, TextPosition right)
Parameters
TextPosition
left
Left text position. |
TextPosition
right
Right text position. |
Returns
System.Boolean
Returns if the left position is less than or equals to the right position. |