ClassTextFormatDefinition
Represents formatting of a text portion.
Definition
Namespace:Telerik.Windows.Controls.SyntaxEditor.UI
Assembly:Telerik.Windows.Controls.SyntaxEditor.dll
Syntax:
public class TextFormatDefinition
Inheritance: objectTextFormatDefinition
Constructors
TextFormatDefinition(Brush)
Initializes a new instance of the TextFormatDefinition class.
Declaration
public TextFormatDefinition(Brush foreground)
Parameters
foreground
Brush
TextFormatDefinition(Brush, Brush)
Initializes a new instance of the TextFormatDefinition class.
Declaration
public TextFormatDefinition(Brush foreground, Brush background)
Parameters
foreground
Brush
background
Brush
TextFormatDefinition(Brush, Brush, UnderlineInfo, Pen)
Initializes a new instance of the TextFormatDefinition class.
Declaration
public TextFormatDefinition(Brush foreground, Brush background, UnderlineInfo underline, Pen border)
Parameters
foreground
Brush
background
Brush
underline
border
TextFormatDefinition(Brush, Brush, UnderlineInfo, Pen, FontWeight, FontStyle)
Initializes a new instance of the TextFormatDefinition class.
Declaration
public TextFormatDefinition(Brush foreground, Brush background, UnderlineInfo underline, Pen border, FontWeight fontWeight, FontStyle fontStyle)
Parameters
foreground
Brush
background
Brush
underline
border
fontWeight
FontWeight
fontStyle
FontStyle
TextFormatDefinition(Brush, FontWeight, FontStyle)
Initializes a new instance of the TextFormatDefinition class.
Declaration
public TextFormatDefinition(Brush foreground, FontWeight fontWeight, FontStyle fontStyle)
Parameters
foreground
Brush
fontWeight
FontWeight
fontStyle
FontStyle
TextFormatDefinition(Pen)
Initializes a new instance of the TextFormatDefinition class.
TextFormatDefinition(UnderlineInfo)
Initializes a new instance of the TextFormatDefinition class.
Declaration
public TextFormatDefinition(UnderlineInfo underline)
Parameters
underline
Properties
Background
Gets the background of the text format definition.
Declaration
public Brush Background { get; }
Property Value
Brush
Border
Gets the border of the text format definition.
FontStyle
Gets the font style of the text format definition.
Declaration
public FontStyle FontStyle { get; }
Property Value
FontStyle
FontWeight
Gets the font weight of the text format definition.
Declaration
public FontWeight FontWeight { get; }
Property Value
FontWeight
Foreground
Gets the foreground of the text format definition.
Declaration
public Brush Foreground { get; }
Property Value
Brush
Underline
Gets the underline of the text format definition.
Methods
Equals(TextFormatDefinition)
Determines whether this instance is equal to other TextFormatDefinition instance.
Declaration
public bool Equals(TextFormatDefinition other)
Parameters
other
Returns
Equals(object)
Determines whether two object instances are equal.
GetHashCode()
Gets the hash code of this instance.
Operators
operator !=(TextFormatDefinition, TextFormatDefinition)
Implements the != operator.
Declaration
public static bool operator !=(TextFormatDefinition left, TextFormatDefinition right)
Parameters
left
The left.
right
The right.
Returns
The result of the operator.
operator ==(TextFormatDefinition, TextFormatDefinition)
Implements the == operator.
Declaration
public static bool operator ==(TextFormatDefinition left, TextFormatDefinition right)
Parameters
left
The left.
right
The right.
Returns
The result of the operator.