ClassTextPosition
Represent a text position in RadTextBoxControlElement
Definition
Namespace:Telerik.WinControls.UI
Assembly:Telerik.WinControls.UI.dll
Syntax:
public class TextPosition : IComparable<TextPosition>, IEquatable<TextPosition>
Inheritance: objectTextPosition
Implements:
Constructors
TextPosition(LineInfo, ITextBlock, int)
Initializes a new instance of the TextPosition class.
Declaration
public TextPosition(LineInfo line, ITextBlock textBlock, int charPosition)
Parameters
line
The line.
textBlock
The text block.
charPosition
The char position.
Properties
Methods
CompareTo(TextPosition)
Compares to TextPosition
Declaration
public virtual int CompareTo(TextPosition position)
Parameters
position
The position.
Returns
Implements
Equals(TextPosition)
Equalses the specified position.
Declaration
public virtual bool Equals(TextPosition position)
Parameters
position
The position.
Returns
Implements
Equals(object)
Determines whether the specified object is equal to this instance.
GetFirstPosition(TextBoxWrapPanel)
Gets the first position.
Declaration
public static TextPosition GetFirstPosition(TextBoxWrapPanel layoutPanel)
Parameters
layoutPanel
The layout panel.
Returns
GetHashCode()
Returns a hash code for this instance.
Declaration
public override int GetHashCode()
Returns
A hash code for this instance, suitable for use in hashing algorithms and data structures like a hash table.
Overrides
GetLastPosition(TextBoxWrapPanel)
Gets the last position.
Declaration
public static TextPosition GetLastPosition(TextBoxWrapPanel layoutPanel)
Parameters
layoutPanel
The layout panel.
Returns
GetLength(TextPosition, TextPosition)
Gets the length.
Declaration
public static int GetLength(TextPosition start, TextPosition end)
Parameters
start
The start.
end
The end.
Returns
Swap(ref TextPosition, ref TextPosition)
Swaps two positions
Declaration
public static void Swap(ref TextPosition startPosition, ref TextPosition endPosition)
Parameters
startPosition
The start position.
endPosition
The end position.
Operators
implicit operator int(TextPosition)
Performs an implicit conversion from TextPosition to int.
Declaration
public static implicit operator int(TextPosition start)
Parameters
start
The start.
Returns
The result of the conversion.
operator !=(TextPosition, TextPosition)
Implements the operator !=.
Declaration
public static bool operator !=(TextPosition start, TextPosition end)
Parameters
start
The start.
end
The end.
Returns
The result of the operator.
operator <(TextPosition, TextPosition)
Implements the operator <.
Declaration
public static bool operator <(TextPosition start, TextPosition end)
Parameters
start
The start.
end
The end.
Returns
The result of the operator.
operator <=(TextPosition, TextPosition)
Implements the operator <=.
Declaration
public static bool operator <=(TextPosition start, TextPosition end)
Parameters
start
The start.
end
The end.
Returns
The result of the operator.
operator ==(TextPosition, TextPosition)
Implements the operator ==.
Declaration
public static bool operator ==(TextPosition start, TextPosition end)
Parameters
start
The start.
end
The end.
Returns
The result of the operator.
operator >(TextPosition, TextPosition)
Implements the operator >.
Declaration
public static bool operator >(TextPosition start, TextPosition end)
Parameters
start
The start.
end
The end.
Returns
The result of the operator.
operator >=(TextPosition, TextPosition)
Implements the operator >=.
Declaration
public static bool operator >=(TextPosition start, TextPosition end)
Parameters
start
The start.
end
The end.
Returns
The result of the operator.