Class SourceText
Namespace: Aspose.Html.Toolkit.Markdown.Syntax.Text
Assembly: Aspose.HTML.dll (25.7.0)
Base class implements the SourceText.
[ComVisible(true)]
public abstract class SourceText : IDisposableInheritance
Implements
Inherited Members
object.GetType() , object.MemberwiseClone() , object.ToString() , object.Equals(object?) , object.Equals(object?, object?) , object.ReferenceEquals(object?, object?) , object.GetHashCode()
Constructors
SourceText()
protected SourceText()Properties
Encoding
Get encoding.
public abstract Encoding Encoding { get; }Property Value
Length
Get the length.
public abstract int Length { get; }Property Value
Lines
Get the Lines collection.
public TextLineCollection Lines { get; }Property Value
Span
Get the span.
public virtual TextSpan Span { get; }Property Value
this[int]
Gets the value at the given index.
public abstract char this[int position] { get; }Property Value
Methods
CopyTo(int, char[], int, int)
Define the interface for get SourceText from array of the source.
public abstract void CopyTo(int sourceIndex, char[] destination, int destinationIndex, int count)Parameters
sourceIndex int
The sourceIndex.
destination char
[]
The destination.
destinationIndex int
The destinationIndex.
count int
The integer count.
Dispose()
Defines the Dispose interface.
public void Dispose()Dispose(bool)
Defines the base interface for Dispose
protected virtual void Dispose(bool disposing)Parameters
disposing bool
The boolean disposing value.
From(string)
Define the interface for get SourceText from string.
public static SourceText From(string text)Parameters
text string
The string text.
Returns
The SourceText.
From(string, Encoding)
Define the interface for get SourceText from string and encoding.
public static SourceText From(string text, Encoding encoding)Parameters
text string
The string text.
encoding Encoding
The encoding.
Returns
The SourceText.
From(SourceText[])
Define the interface for get SourceText from array of the source.
public static SourceText From(SourceText[] source)Parameters
source SourceText
[]
The SourceText.
Returns
The SourceText.
GetText()
Define the interface for get Text.
public SourceText GetText()Returns
The SourceText.
GetText(TextSpan)
Define the interface for get Text.
public virtual SourceText GetText(TextSpan span)Parameters
span TextSpan
The TextSpan.
Returns
The SourceText.
GetText(int)
Define the interface for get Text.
public SourceText GetText(int start)Parameters
start int
The int start.
Returns
The SourceText.
Exceptions
The index is negative -or- larger than the length.
ToString()
Override the ToString() method.
public override string ToString()Returns
The string.
ToString(int)
Override the ToString() method.
public string ToString(int start)Parameters
start int
The integer start value.
Returns
The string result.
Exceptions
The index is negative -or- larger than the length.
ToString(int, int)
Defines the interface ToString()
public string ToString(int start, int length)Parameters
start int
The start position.
length int
The length.
Returns
The string.
ToString(TextSpan)
Defines the interface ToString()
public virtual string ToString(TextSpan span)Parameters
span TextSpan
The TextSpan.
Returns
The string.