• DR-IT Software
  • Products
  • Documentation
  • Product page
  • Examples
  • API reference
  • Support
Show / Hide Table of Contents

Class Run

Represents a contiguous range of text and character formatting.

Inheritance
object
Node
CompositeNode
Run
Implements
IEnumerable<Node>
IEnumerable
Inherited Members
CompositeNode.ChildNodes
CompositeNode.GetAllChildNodes()
CompositeNode.Count
CompositeNode.FirstChild
CompositeNode.HasChildNodes
CompositeNode.IsComposite
CompositeNode.LastChild
CompositeNode.GetEnumerator()
Node.Document
Node.NextSibling
Node.ParentNode
Node.PreviousSibling
object.ToString()
object.Equals(object)
object.Equals(object, object)
object.ReferenceEquals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
Namespace: DRIT.Document
Assembly: DRIT.Document.dll
Syntax
public class Run : CompositeNode, IEnumerable<Node>, IEnumerable

Properties

Breaks

Gets the break elements contained in this run.

Declaration
public List<BreakType> Breaks { get; }
Property Value
Type Description
List<BreakType>

CharacterFormatRevision

The character format revision for this run, or null if no format change has been tracked. Stores the previous format so it can be restored on Reject().

Declaration
public CharacterFormatRevision CharacterFormatRevision { get; set; }
Property Value
Type Description
CharacterFormatRevision

Font

Gets the character formatting for this run.

Declaration
public Font Font { get; }
Property Value
Type Description
Font

IsDeleteRevision

True when this run is inside a w:del (deleted) revision mark.

Declaration
public bool IsDeleteRevision { get; }
Property Value
Type Description
bool

IsFormatRevision

True when this run has a character format revision.

Declaration
public bool IsFormatRevision { get; }
Property Value
Type Description
bool

IsInsertRevision

True when this run is inside a w:ins (inserted) revision mark.

Declaration
public bool IsInsertRevision { get; }
Property Value
Type Description
bool

IsMoveFromRevision

True when this run is inside a w:moveFrom revision mark.

Declaration
public bool IsMoveFromRevision { get; }
Property Value
Type Description
bool

IsMoveToRevision

True when this run is inside a w:moveTo revision mark.

Declaration
public bool IsMoveToRevision { get; }
Property Value
Type Description
bool

NodeType

Gets the node type, which is always Run.

Declaration
public override NodeType NodeType { get; }
Property Value
Type Description
NodeType
Overrides
Node.NodeType

Revision

The tracked-change revision for this run, or null if the run is not revision-marked. Set to a new Revision(RevisionType.Insert) or Revision(RevisionType.Delete) to mark this run as inserted or deleted.

Declaration
public Revision Revision { get; set; }
Property Value
Type Description
Revision

Texts

Gets the text fragments contained in this run.

Declaration
public List<string> Texts { get; }
Property Value
Type Description
List<string>

Methods

GetText()

Gets the concatenated visible text contained in this run.

Declaration
public string GetText()
Returns
Type Description
string

The run text.

RemoveDrawingShape(DocumentShape)

Removes a drawing shape child from this run.

Declaration
public bool RemoveDrawingShape(DocumentShape shape)
Parameters
Type Name Description
DocumentShape shape

The document shape to remove.

Returns
Type Description
bool

true when the shape was present.

Implements

IEnumerable<T>
IEnumerable
Back to top

DR-IT Software documentation

DR-IT Software · Products · Documentation index · Product page · Downloads · Support · Licensing

Generated by DocFX