Class SourceText

Class SourceText

Namespace: Aspose.Html.Toolkit.Markdown.Syntax.Text
Assembly: Aspose.HTML.dll (25.2.0)

Base class implements the SourceText.

[ComVisible(true)]
public abstract class SourceText : IDisposable

Inheritance

objectSourceText

Implements

IDisposable

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

Encoding

Length

Get the length.

public abstract int Length { get; }

Property Value

int

Lines

Get the Lines collection.

public TextLineCollection Lines { get; }

Property Value

TextLineCollection

Span

Get the span.

public virtual TextSpan Span { get; }

Property Value

TextSpan

this[int]

Gets the value at the given index.

public abstract char this[int position] { get; }

Property Value

char

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

SourceText

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

SourceText

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

SourceText

The SourceText.

GetText()

Define the interface for get Text.

public SourceText GetText()

Returns

SourceText

The SourceText.

GetText(TextSpan)

Define the interface for get Text.

public virtual SourceText GetText(TextSpan span)

Parameters

span TextSpan

The TextSpan.

Returns

SourceText

The SourceText.

GetText(int)

Define the interface for get Text.

public SourceText GetText(int start)

Parameters

start int

The int start.

Returns

SourceText

The SourceText.

Exceptions

ArgumentOutOfRangeException

The index is negative -or- larger than the length.

ToString()

Override the ToString() method.

public override string ToString()

Returns

string

The string.

ToString(int)

Override the ToString() method.

public string ToString(int start)

Parameters

start int

The integer start value.

Returns

string

The string result.

Exceptions

ArgumentOutOfRangeException

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

string

The string.

ToString(TextSpan)

Defines the interface ToString()

public virtual string ToString(TextSpan span)

Parameters

span TextSpan

The TextSpan.

Returns

string

The string.