Class KMarkdownElement
- Namespace
- Kook
- Assembly
- Kook.Net.Core.dll
A KMarkdown element that can be used in an IModule.
public class KMarkdownElement : IElement, IEquatable<KMarkdownElement>, IEquatable<IElement>
- Inheritance
-
KMarkdownElement
- Implements
- Inherited Members
- Extension Methods
Properties
Content
Gets the KMarkdown content of the element.
public string Content { get; }
Property Value
- string
A string that represents the KMarkdown content of the element.
Type
Gets the type of the element.
public ElementType Type { get; }
Property Value
- ElementType
An ElementType value that represents the theme of the button.
Methods
Equals(KMarkdownElement?)
Determines whether the specified KMarkdownElement is equal to the current KMarkdownElement.
public bool Equals(KMarkdownElement? kMarkdownElement)
Parameters
kMarkdownElement
KMarkdownElementThe KMarkdownElement to compare with the current KMarkdownElement.
Returns
- bool
true
if the specified KMarkdownElement is equal to the current KMarkdownElement; otherwise,false
.
Equals(object?)
Determines whether the specified KMarkdownElement is equal to the current KMarkdownElement.
public override bool Equals(object? obj)
Parameters
obj
objectThe object to compare with the current KMarkdownElement.
Returns
- bool
true
if the specified KMarkdownElement is equal to the current KMarkdownElement; otherwise,false
.
Remarks
If the object passes is an KMarkdownElement, Equals(KMarkdownElement?) will be called to compare the 2 instances.
GetHashCode()
Serves as the default hash function.
public override int GetHashCode()
Returns
- int
A hash code for the current object.
ToString()
Returns a string that represents the current object.
public override string ToString()
Returns
- string
A string that represents the current object.
Operators
operator ==(KMarkdownElement?, KMarkdownElement?)
Determines whether the specified KMarkdownElement is equal to the current KMarkdownElement.
public static bool operator ==(KMarkdownElement? left, KMarkdownElement? right)
Parameters
left
KMarkdownElementright
KMarkdownElement
Returns
- bool
true
if the specified KMarkdownElement is equal to the current KMarkdownElement; otherwise,false
.
operator !=(KMarkdownElement?, KMarkdownElement?)
Determines whether the specified KMarkdownElement is not equal to the current KMarkdownElement.
public static bool operator !=(KMarkdownElement? left, KMarkdownElement? right)
Parameters
left
KMarkdownElementright
KMarkdownElement
Returns
- bool
true
if the specified KMarkdownElement is not equal to the current KMarkdownElement; otherwise,false
.