C# Class ExoMerge.Aspose.Common.InlineField

A class used to represent a field which resides within a single composite (i.e. paragraph) node.
Show file Open project: vc3/ExoMerge Class Usage Examples

Public Methods

Method Description
Create ( FieldStart start ) : InlineField

Create an inline field for the given field start node.

GetCode ( ) : string

Gets the code of the field, e.g. " MERGEFIELD MyField ".

GetEnd ( ) : FieldEnd

Gets the field end node.

GetNodes ( ) : IEnumerable

Gets the node that make up the inline field.

IsValid ( ) : bool

Determines if the field is a valid inline field.

TryParse ( FieldStart start, InlineField &field ) : bool

Attempt to create an inline field for the given start field.

Private Methods

Method Description
FindMatchingEnd ( FieldStart start ) : FieldEnd

Find the FieldEnd node that matches the field's start node.

InlineField ( FieldStart start ) : System.Collections.Generic

Method Details

Create() public static method

Create an inline field for the given field start node.
public static Create ( FieldStart start ) : InlineField
start FieldStart
return InlineField

GetCode() public method

Gets the code of the field, e.g. " MERGEFIELD MyField ".
public GetCode ( ) : string
return string

GetEnd() public method

Gets the field end node.
public GetEnd ( ) : FieldEnd
return FieldEnd

GetNodes() public method

Gets the node that make up the inline field.
public GetNodes ( ) : IEnumerable
return IEnumerable

IsValid() public method

Determines if the field is a valid inline field.
public IsValid ( ) : bool
return bool

TryParse() public static method

Attempt to create an inline field for the given start field.
public static TryParse ( FieldStart start, InlineField &field ) : bool
start FieldStart
field InlineField
return bool