Skip to content

MKTextBlock

Inherits MKBlock

Description

Represents a text block within a Markdown document.

Properties

Name Type Read-Only
Contents String
IsBlank Boolean
Line XUITextLine
LocalStart Integer
PhantomSpaces Integer

Methods

Name Parameters Returns
Constructor parent As MKBlock, absoluteStart As Integer, localStart As Integer, contents As String, phantomSpaces As Integer, line As XUITextLine

Property Descriptions

Contents As String

The contents of this text block.


IsBlank As Boolean

True if this text block is empty.


Line As XUITextLine

The line this text block begins on.


LocalStart As Integer

0-based local position on the line that this text block starts.


PhantomSpaces As Integer

The number of spaces to be inserted at the start of this text block that don't actually exist in the source but are required for CommonMark compliance.


Method Descriptions

Constructor(parent As MKBlock, absoluteStart As Integer, localStart As Integer, contents As String, phantomSpaces As Integer, line As XUITextLine)

Default constructor.

  • parent is the parent of this block.
  • abasoluteStart is the 0-based position in the original source of the start of this block.
  • localStart is the 0-based position on the line that this block begins at.
  • contents is the contents of this text block.
  • phantomSpaces is the number of spaces to be inserted at the start of this text block that don't actually exist in the source but are required for CommonMark compliance.
  • line is a reference to the line this text block begins on.