Class TextPosition
Represent a text position in RadTextBoxControlElement
Inheritance
Inherited Members
Namespace: Telerik.WinControls.UI
Assembly: Telerik.WinControls.UI.dll
Syntax
public class TextPosition : IComparable<TextPosition>, IEquatable<TextPosition>
Constructors
TextPosition(LineInfo, ITextBlock, Int32)
Initializes a new instance of the TextPosition class.
Declaration
public TextPosition(LineInfo line, ITextBlock textBlock, int charPosition)
Parameters
LineInfo
line
The line. |
ITextBlock
textBlock
The text block. |
System.Int32
charPosition
The char position. |
Properties
CharPosition
Gets the char position in ITextBlock
Declaration
public int CharPosition { get; }
Property Value
System.Int32
|
Line
TextBlock
Methods
CompareTo(TextPosition)
Compares to TextPosition
Declaration
public virtual int CompareTo(TextPosition position)
Parameters
TextPosition
position
The position. |
Returns
System.Int32
|
Implements
Equals(Object)
Determines whether the specified System.Object is equal to this instance.
Declaration
public override bool Equals(object obj)
Parameters
System.Object
obj
The System.Object to compare with this instance. |
Returns
System.Boolean
|
Overrides
Equals(TextPosition)
Equalses the specified position.
Declaration
public virtual bool Equals(TextPosition position)
Parameters
TextPosition
position
The position. |
Returns
System.Boolean
|
Implements
GetFirstPosition(TextBoxWrapPanel)
Gets the first position.
Declaration
public static TextPosition GetFirstPosition(TextBoxWrapPanel layoutPanel)
Parameters
TextBoxWrapPanel
layoutPanel
The layout panel. |
Returns
TextPosition
|
GetHashCode()
Returns a hash code for this instance.
Declaration
public override int GetHashCode()
Returns
System.Int32
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
TextBoxWrapPanel
layoutPanel
The layout panel. |
Returns
TextPosition
|
GetLength(TextPosition, TextPosition)
Gets the length.
Declaration
public static int GetLength(TextPosition start, TextPosition end)
Parameters
TextPosition
start
The start. |
TextPosition
end
The end. |
Returns
System.Int32
|
Swap(ref TextPosition, ref TextPosition)
Swaps two positions
Declaration
public static void Swap(ref TextPosition startPosition, ref TextPosition endPosition)
Parameters
TextPosition
startPosition
The start position. |
TextPosition
endPosition
The end position. |
ToString()
Declaration
public override string ToString()
Returns
System.String
|
Overrides
Operators
Equality(TextPosition, TextPosition)
Implements the operator ==.
Declaration
public static bool operator ==(TextPosition start, TextPosition end)
Parameters
TextPosition
start
The start. |
TextPosition
end
The end. |
Returns
System.Boolean
The result of the operator. |
GreaterThan(TextPosition, TextPosition)
Implements the operator >.
Declaration
public static bool operator>(TextPosition start, TextPosition end)
Parameters
TextPosition
start
The start. |
TextPosition
end
The end. |
Returns
System.Boolean
The result of the operator. |
GreaterThanOrEqual(TextPosition, TextPosition)
Implements the operator >=.
Declaration
public static bool operator >=(TextPosition start, TextPosition end)
Parameters
TextPosition
start
The start. |
TextPosition
end
The end. |
Returns
System.Boolean
The result of the operator. |
Implicit(TextPosition to Int32)
Performs an implicit conversion from TextPosition to System.Int32.
Declaration
public static implicit operator int (TextPosition start)
Parameters
TextPosition
start
The start. |
Returns
System.Int32
The result of the conversion. |
Inequality(TextPosition, TextPosition)
Implements the operator !=.
Declaration
public static bool operator !=(TextPosition start, TextPosition end)
Parameters
TextPosition
start
The start. |
TextPosition
end
The end. |
Returns
System.Boolean
The result of the operator. |
LessThan(TextPosition, TextPosition)
Implements the operator <.
Declaration
public static bool operator <(TextPosition start, TextPosition end)
Parameters
TextPosition
start
The start. |
TextPosition
end
The end. |
Returns
System.Boolean
The result of the operator. |
LessThanOrEqual(TextPosition, TextPosition)
Implements the operator <=.
Declaration
public static bool operator <=(TextPosition start, TextPosition end)
Parameters
TextPosition
start
The start. |
TextPosition
end
The end. |
Returns
System.Boolean
The result of the operator. |