Class
TextFormatDefinition

Represents formatting of a text portion.

Definition

Namespace:Telerik.Windows.Controls.SyntaxEditor.UI

Assembly:Telerik.Windows.Controls.SyntaxEditor.dll

Syntax:

cs-api-definition
public class TextFormatDefinition

Inheritance: objectTextFormatDefinition

Constructors

TextFormatDefinition(Brush)

Initializes a new instance of the TextFormatDefinition class.

Declaration

cs-api-definition
public TextFormatDefinition(Brush foreground)

Parameters

foreground

Brush

TextFormatDefinition(Brush, Brush)

Initializes a new instance of the TextFormatDefinition class.

Declaration

cs-api-definition
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

cs-api-definition
public TextFormatDefinition(Brush foreground, Brush background, UnderlineInfo underline, Pen border)

Parameters

foreground

Brush

background

Brush

underline

UnderlineInfo

border

Pen

TextFormatDefinition(Brush, Brush, UnderlineInfo, Pen, FontWeight, FontStyle)

Initializes a new instance of the TextFormatDefinition class.

Declaration

cs-api-definition
public TextFormatDefinition(Brush foreground, Brush background, UnderlineInfo underline, Pen border, FontWeight fontWeight, FontStyle fontStyle)

Parameters

foreground

Brush

background

Brush

underline

UnderlineInfo

border

Pen

fontWeight

FontWeight

fontStyle

FontStyle

TextFormatDefinition(Brush, FontWeight, FontStyle)

Initializes a new instance of the TextFormatDefinition class.

Declaration

cs-api-definition
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.

Declaration

cs-api-definition
public TextFormatDefinition(Pen border)

Parameters

border

Pen

TextFormatDefinition(UnderlineInfo)

Initializes a new instance of the TextFormatDefinition class.

Declaration

cs-api-definition
public TextFormatDefinition(UnderlineInfo underline)

Parameters

underline

UnderlineInfo

Properties

Background

Gets the background of the text format definition.

Declaration

cs-api-definition
public Brush Background { get; }

Property Value

Brush

Border

Gets the border of the text format definition.

Declaration

cs-api-definition
public Pen Border { get; }

Property Value

Pen

FontStyle

Gets the font style of the text format definition.

Declaration

cs-api-definition
public FontStyle FontStyle { get; }

Property Value

FontStyle

FontWeight

Gets the font weight of the text format definition.

Declaration

cs-api-definition
public FontWeight FontWeight { get; }

Property Value

FontWeight

Foreground

Gets the foreground of the text format definition.

Declaration

cs-api-definition
public Brush Foreground { get; }

Property Value

Brush

Underline

Gets the underline of the text format definition.

Declaration

cs-api-definition
public UnderlineInfo Underline { get; }

Property Value

UnderlineInfo

Methods

Equals(TextFormatDefinition)

Determines whether this instance is equal to other TextFormatDefinition instance.

Declaration

cs-api-definition
public bool Equals(TextFormatDefinition other)

Parameters

other

TextFormatDefinition

Returns

bool

Equals(object)

Determines whether two object instances are equal.

Declaration

cs-api-definition
public override bool Equals(object obj)

Parameters

obj

object

Returns

bool

Overrides object.Equals(object)

GetHashCode()

Gets the hash code of this instance.

Declaration

cs-api-definition
public override int GetHashCode()

Returns

int

Overrides object.GetHashCode()

Operators

operator !=(TextFormatDefinition, TextFormatDefinition)

Implements the != operator.

Declaration

cs-api-definition
public static bool operator !=(TextFormatDefinition left, TextFormatDefinition right)

Parameters

left

TextFormatDefinition

The left.

right

TextFormatDefinition

The right.

Returns

bool

The result of the operator.

operator ==(TextFormatDefinition, TextFormatDefinition)

Implements the == operator.

Declaration

cs-api-definition
public static bool operator ==(TextFormatDefinition left, TextFormatDefinition right)

Parameters

left

TextFormatDefinition

The left.

right

TextFormatDefinition

The right.

Returns

bool

The result of the operator.