Class
CodeLanguage

Represents the programming language used in the code block.

Definition

Namespace:Telerik.Windows.Documents.Model.Code

Assembly:Telerik.Windows.Controls.RichTextBox.dll

Syntax:

cs-api-definition
public class CodeLanguage : IEquatable<CodeLanguage>

Inheritance: objectCodeLanguage

Implements: IEquatable<CodeLanguage>

Constructors

CodeLanguage(string)

Declaration

cs-api-definition
public CodeLanguage(string name)

Parameters

name

string

Properties

Name

Gets the name of the code language represented by the instance.

Declaration

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

Property Value

string

Methods

Equals(CodeLanguage)

Compares the current instance of the CodeLanguage class with another CodeLanguage object.

Declaration

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

Parameters

other

CodeLanguage

The CodeLanguage object to compare with the current instance.

Returns

bool

Returns true if the specified CodeLanguage is equal to the current CodeLanguage instance; otherwise, false.

Implements IEquatable<CodeLanguage>.Equals(CodeLanguage)

Equals(object)

Compares the current instance with a specified object for equality.

Declaration

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

Parameters

obj

object

The object to compare with the current instance.

Returns

bool

True if the specified object is equal to the current instance; otherwise, false.

Overrides object.Equals(object)

GetHashCode()

Returns a hash code for the current instance of the CodeLanguage class.

Declaration

cs-api-definition
public override int GetHashCode()

Returns

int

A 32-bit signed integer that is the hash code for the current CodeLanguage object.

Overrides object.GetHashCode()