Skip to main content

TextLine Methods

Methods

Collapse(TextCollapsingProperties[])Create a collapsed line based on collapsed text properties.
Dispose() 
Draw(DrawingContext, Point)Draws the TextLine at the given origin.
Equals(Object)Determines whether the specified object is equal to the current object.
(Inherited from Object)
Finalize()Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object)
GetBackspaceCaretCharacterHit(CharacterHit)Gets the previous character hit after backspacing.
GetCharacterHitFromDistance(Double)Gets the character hit corresponding to the specified distance from the beginning of the line.
GetDistanceFromCharacterHit(CharacterHit)Gets the distance from the beginning of the line to the specified character hit. CharacterHit.
GetHashCode()Serves as the default hash function.
(Inherited from Object)
GetNextCaretCharacterHit(CharacterHit)Gets the next character hit for caret navigation.
GetPreviousCaretCharacterHit(CharacterHit)Gets the previous character hit for caret navigation.
GetTextBounds(Int32, Int32)Get an array of bounding rectangles of a range of characters within a text line.
GetType()Gets the Type of the current instance.
(Inherited from Object)
Justify(JustificationProperties)Create a justified line based on justification text properties.
MemberwiseClone()Creates a shallow copy of the current Object.
(Inherited from Object)
ToString()Returns a string that represents the current object.
(Inherited from Object)

See Also

Reference

TextLine Class
Avalonia.Media.TextFormatting Namespace