Skip to main content

Search OfficeIMO

Enter a topic, API type, or PowerShell command.

Documentation Search all OfficeIMO/
Struct

MarkdownSourceSpan

OfficeIMO.Markdown

Namespace
OfficeIMO.Markdown
Assembly
OfficeIMO.Markdown
Source revision
0eef6a5756b9 with working tree changes
Base
ValueType
Implements
IEquatable<MarkdownSourceSpan>
Modifiers
sealed

Source span for markdown syntax nodes.

Inheritance

  • ValueType
  • MarkdownSourceSpan

Usage

Explore 331 API references to this type

This type appears in these public API surfaces even when no hand-authored example is attached directly to the page.

Returned or exposed by 265

Accepted by parameters 66

Constructors

MarkdownSourceSpan 2 overloads
public MarkdownSourceSpan(int startLine, int endLine) #

Create a line-based source span.

Parameters

startLine int required
endLine int required
public MarkdownSourceSpan(int startLine, int startColumn, int endLine, int endColumn, int? startOffset = null, int? endOffset = null) #

Create a source span with line, column, and optional normalized-text offsets.

Parameters

startLine int required
startColumn int required
endLine int required
endColumn int required
startOffset int? = null optional
endOffset int? = null optional

Methods

public bool Contains(MarkdownSourceSpan other) #

Returns true when this span fully contains the given span.

Parameters

other OfficeIMO.Markdown.MarkdownSourceSpan required

Returns

bool
public bool ContainsLine(int lineNumber) #

Returns true when the span contains the given 1-based line number.

Parameters

lineNumber int required

Returns

bool
public bool ContainsPosition(int lineNumber, int columnNumber) #

Returns true when the span contains the given 1-based line and column.

Parameters

lineNumber int required
columnNumber int required

Returns

bool
Equals 2 overloads
public override bool Equals(object? obj) #

Indicates whether this instance and a specified object are equal.

Parameters

obj object? required
The object to compare with the current instance.

Returns

bool true if obj and this instance are the same type and represent the same value; otherwise, false.
public bool Equals(MarkdownSourceSpan other) #

Indicates whether the current object is equal to another object of the same type.

Parameters

other OfficeIMO.Markdown.MarkdownSourceSpan required
An object to compare with this object.

Returns

bool true if the current object is equal to the other parameter; otherwise, false.
public override int GetHashCode() #

Returns the hash code for this instance.

Returns

int A 32-bit signed integer that is the hash code for this instance.
public bool Overlaps(MarkdownSourceSpan other) #

Returns true when this span overlaps the given span.

Parameters

other OfficeIMO.Markdown.MarkdownSourceSpan required

Returns

bool
public override string ToString() #

Returns the fully qualified type name of this instance.

Returns

string The fully qualified type name.

Properties

public int StartLine { get; } #

1-based start line.

public int? StartColumn { get; } #

1-based start column.

public int EndLine { get; } #

1-based end line.

public int? EndColumn { get; } #

1-based end column.

public int? StartOffset { get; } #

0-based start offset in the normalized markdown text.

public int? EndOffset { get; } #

0-based end offset in the normalized markdown text.