New to Telerik UI for WPF? Start a free 30-day trial

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:

C#
public class FoldingRegionMatch : IComparable

Inheritance: objectFoldingRegionMatch

Implements: IComparable

Constructors

C#
public FoldingRegionMatch()

Properties

Gets the index of the folding match.

C#
public int Index { get; }

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

C#
public bool IsStart { get; }

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

C#
public bool IsUsed { get; set; }

Gets the tag (keyword) of the folding match.

C#
public string Tag { get; }

Methods

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.

C#
public int CompareTo(object obj)
Parameters:objobject

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)

Determines whether the specified object is equal to this instance.

C#
public override bool Equals(object obj)
Parameters:objobject

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)

Returns a hash code for this instance.

C#
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

Implements the != operator.

C#
public static bool operator !=(FoldingRegionMatch left, FoldingRegionMatch right)
Parameters:leftFoldingRegionMatch

The left.

rightFoldingRegionMatch

The right.

Returns:

bool

The result of the operator.

Implements the < operator.

C#
public static bool operator <(FoldingRegionMatch left, FoldingRegionMatch right)
Parameters:leftFoldingRegionMatch

The left.

rightFoldingRegionMatch

The right.

Returns:

bool

The result of the operator.

Implements the <= operator.

C#
public static bool operator <=(FoldingRegionMatch left, FoldingRegionMatch right)
Parameters:leftFoldingRegionMatch

The left.

rightFoldingRegionMatch

The right.

Returns:

bool

The result of the operator.

Implements the == operator.

C#
public static bool operator ==(FoldingRegionMatch left, FoldingRegionMatch right)
Parameters:leftFoldingRegionMatch

The left.

rightFoldingRegionMatch

The right.

Returns:

bool

The result of the operator.

Implements the > operator.

C#
public static bool operator >(FoldingRegionMatch left, FoldingRegionMatch right)
Parameters:leftFoldingRegionMatch

The left.

rightFoldingRegionMatch

The right.

Returns:

bool

The result of the operator.

Implements the >= operator.

C#
public static bool operator >=(FoldingRegionMatch left, FoldingRegionMatch right)
Parameters:leftFoldingRegionMatch

The left.

rightFoldingRegionMatch

The right.

Returns:

bool

The result of the operator.