Class CodeLanguage
Represents the programming language used in the code block.
Inheritance
Namespace: Telerik.Windows.Documents.Model.Code
Assembly: Telerik.Windows.Controls.RichTextBox.dll
Syntax
public class CodeLanguage : Object, IEquatable<CodeLanguage>
Constructors
CodeLanguage(String)
Declaration
public CodeLanguage(string name)
Parameters
|
System.String
name
|
Properties
Name
Gets the name of the code language represented by the instance.
Declaration
public string Name { get; }
Property Value
|
System.String
|
Methods
Equals(Object)
Compares the current instance with a specified object for equality.
Declaration
public override bool Equals(object obj)
Parameters
|
System.Object
obj
The object to compare with the current instance. |
Returns
|
System.Boolean
True if the specified object is equal to the current instance; otherwise, false. |
Equals(CodeLanguage)
Compares the current instance of the CodeLanguage class with another CodeLanguage object.
Declaration
public bool Equals(CodeLanguage other)
Parameters
|
CodeLanguage
other
The CodeLanguage object to compare with the current instance. |
Returns
|
System.Boolean
Returns true if the specified CodeLanguage is equal to the current CodeLanguage instance; otherwise, false. |
GetHashCode()
Returns a hash code for the current instance of the CodeLanguage class.
Declaration
public override int GetHashCode()
Returns
|
System.Int32
A 32-bit signed integer that is the hash code for the current CodeLanguage object. |