Skip to main content

FormattedText Methods

Methods

BuildGeometry(Point)Obtains geometry for the text, including underlines and strikethroughs.
BuildHighlightGeometry(Point)Builds a highlight geometry object.
BuildHighlightGeometry(Point, Int32, Int32)Builds a highlight geometry object for a given character range.
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)
GetHashCode()Serves as the default hash function.
(Inherited from Object)
GetMaxTextWidths()Obtains a copy of the array of lengths, which will be applied to each line of text in turn. If the text covers more lines than there are entries in the length array, the last entry is reused as many times as required. The maxTextWidths array overrides the MaxTextWidth property.
GetType()Gets the Type of the current instance.
(Inherited from Object)
MemberwiseClone()Creates a shallow copy of the current Object.
(Inherited from Object)
SetCulture(CultureInfo)Sets or changes the culture for the text object.
SetCulture(CultureInfo, Int32, Int32)Sets or changes the culture for the text object.
SetFontFamily(FontFamily)Sets or changes the font family for the text object
SetFontFamily(String)Sets or changes the font family for the text object
SetFontFamily(FontFamily, Int32, Int32)Sets or changes the font family for the text object
SetFontFamily(String, Int32, Int32)Sets or changes the font family for the text object
SetFontFeatures(FontFeatureCollection)Sets or changes the font features for the text object
SetFontFeatures(FontFeatureCollection, Int32, Int32)Sets or changes the font features for the text object
SetFontSize(Double)Sets or changes the font em size measured in MIL units
SetFontSize(Double, Int32, Int32)Sets or changes the font em size measured in MIL units
SetFontStyle(FontStyle)Sets or changes the font style
SetFontStyle(FontStyle, Int32, Int32)Sets or changes the font style
SetFontTypeface(Typeface)Sets or changes the type face
SetFontTypeface(Typeface, Int32, Int32)Sets or changes the type face
SetFontWeight(FontWeight)Sets or changes the font weight
SetFontWeight(FontWeight, Int32, Int32)Sets or changes the font weight
SetForegroundBrush(IBrush)Sets foreground brush used for drawing text
SetForegroundBrush(IBrush, Int32, Int32)Sets foreground brush used for drawing text
SetMaxTextWidths(Double[])Sets the array of lengths, which will be applied to each line of text in turn. If the text covers more lines than there are entries in the length array, the last entry is reused as many times as required. The maxTextWidths array overrides the MaxTextWidth property.
SetTextDecorations(TextDecorationCollection)Sets or changes the text decorations
SetTextDecorations(TextDecorationCollection, Int32, Int32)Sets or changes the text decorations
ToString()Returns a string that represents the current object.
(Inherited from Object)

See Also

Reference

FormattedText Class
Avalonia.Media Namespace