Class
TextFormatDefinition

Represents formatting of a text portion.

Definition

Namespace:Telerik.WinForms.Controls.SyntaxEditor.UI

Assembly:Telerik.WinControls.SyntaxEditor.dll

Syntax:

cs-api-definition
public class TextFormatDefinition

Inheritance: objectTextFormatDefinition

Constructors

TextFormatDefinition(Pen)

Initializes a new instance of the TextFormatDefinition class.

Declaration

cs-api-definition
public TextFormatDefinition(Pen border)

Parameters

border

Pen

TextFormatDefinition(SolidBrush)

Initializes a new instance of the TextFormatDefinition class.

Declaration

cs-api-definition
public TextFormatDefinition(SolidBrush foreground)

Parameters

foreground

SolidBrush

TextFormatDefinition(SolidBrush, SolidBrush)

Initializes a new instance of the TextFormatDefinition class.

Declaration

cs-api-definition
public TextFormatDefinition(SolidBrush foreground, SolidBrush background)

Parameters

foreground

SolidBrush

background

SolidBrush

TextFormatDefinition(SolidBrush, SolidBrush, UnderlineInfo, Pen)

Initializes a new instance of the TextFormatDefinition class.

Declaration

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

Parameters

foreground

SolidBrush

background

SolidBrush

underline

UnderlineInfo

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 SolidBrush Background { get; }

Property Value

SolidBrush

Border

Gets the border of the text format definition.

Declaration

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

Property Value

Pen

Foreground

Gets the foreground of the text format definition.

Declaration

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

Property Value

SolidBrush

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.