Class
FoldingRegionMatch

Represents a folding start or end match structure. It keeps the index of the match and the start/end tag (keyword) which is matched in the document.

Definition

Namespace:Telerik.Windows.Controls.SyntaxEditor.Taggers

Assembly:Telerik.Windows.Controls.SyntaxEditor.dll

Syntax:

cs-api-definition
public class FoldingRegionMatch : IComparable

Inheritance: objectFoldingRegionMatch

Implements: IComparable

Constructors

FoldingRegionMatch()

Declaration

cs-api-definition
public FoldingRegionMatch()

Properties

Index

Gets the index of the folding match.

Declaration

cs-api-definition
public int Index { get; }

Property Value

int

IsStart

Gets a value indicating whether the folding match is start or end of a folding region.

Declaration

cs-api-definition
public bool IsStart { get; }

Property Value

bool

IsUsed

Gets or sets a value indicating whether the folding match is already used in a folding region.

Declaration

cs-api-definition
public bool IsUsed { get; set; }

Property Value

bool

Tag

Gets the tag (keyword) of the folding match.

Declaration

cs-api-definition
public string Tag { get; }

Property Value

string

Methods

CompareTo(object)

Compares the current instance with another object of the same type and returns an integer that indicates whether the current instance precedes, follows, or occurs in the same position in the sort order as the other object.

Declaration

cs-api-definition
public int CompareTo(object obj)

Parameters

obj

object

An object to compare with this instance.

Returns

int

A value that indicates the relative order of the objects being compared.

Implements IComparable.CompareTo(object)

Equals(object)

Determines whether the specified object is equal to this instance.

Declaration

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

Parameters

obj

object

The object to compare with the current object.

Returns

bool

true if the specified object is equal to this instance; otherwise, false.

Overrides object.Equals(object)

GetHashCode()

Returns a hash code for this instance.

Declaration

cs-api-definition
public override int GetHashCode()

Returns

int

A hash code for this instance, suitable for use in hashing algorithms and data structures like a hash table.

Overrides object.GetHashCode()

Operators

operator !=(FoldingRegionMatch, FoldingRegionMatch)

Implements the != operator.

Declaration

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

Parameters

left

FoldingRegionMatch

The left.

right

FoldingRegionMatch

The right.

Returns

bool

The result of the operator.

operator <(FoldingRegionMatch, FoldingRegionMatch)

Implements the < operator.

Declaration

cs-api-definition
public static bool operator <(FoldingRegionMatch left, FoldingRegionMatch right)

Parameters

left

FoldingRegionMatch

The left.

right

FoldingRegionMatch

The right.

Returns

bool

The result of the operator.

operator <=(FoldingRegionMatch, FoldingRegionMatch)

Implements the <= operator.

Declaration

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

Parameters

left

FoldingRegionMatch

The left.

right

FoldingRegionMatch

The right.

Returns

bool

The result of the operator.

operator ==(FoldingRegionMatch, FoldingRegionMatch)

Implements the == operator.

Declaration

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

Parameters

left

FoldingRegionMatch

The left.

right

FoldingRegionMatch

The right.

Returns

bool

The result of the operator.

operator >(FoldingRegionMatch, FoldingRegionMatch)

Implements the > operator.

Declaration

cs-api-definition
public static bool operator >(FoldingRegionMatch left, FoldingRegionMatch right)

Parameters

left

FoldingRegionMatch

The left.

right

FoldingRegionMatch

The right.

Returns

bool

The result of the operator.

operator >=(FoldingRegionMatch, FoldingRegionMatch)

Implements the >= operator.

Declaration

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

Parameters

left

FoldingRegionMatch

The left.

right

FoldingRegionMatch

The right.

Returns

bool

The result of the operator.