Skip to main content

Search OfficeIMO

Enter a topic, API type, or PowerShell command.

Documentation Search all OfficeIMO/
Class

RtfFieldFluent

OfficeIMO.Rtf

Namespace
OfficeIMO.Rtf
Assembly
OfficeIMO.Rtf
Modifiers
static

The fluent methods of RtfField, generated from its public properties: A property-named method sets a property and a singular-named method adds to a collection, both returning the same instance.

Inheritance

  • object
  • RtfFieldFluent

Methods

public static RtfField FormFieldData(RtfField rtfField, Action<RtfFormFieldData> configure) #

Configures Word form-field metadata for this field.

Parameters

rtfField OfficeIMO.Rtf.RtfField required
The instance.
configure System.Action<OfficeIMO.Rtf.RtfFormFieldData> required
The value.

Returns

RtfField The same instance.
HyperlinkField 2 overloads
public static RtfField HyperlinkField(RtfField rtfField, RtfHyperlinkFieldInfo? value) #

Sets RtfField.HyperlinkField: Parsed metadata for HYPERLINK fields. The raw RtfField.Instruction remains authoritative.

Parameters

rtfField OfficeIMO.Rtf.RtfField required
The instance.
value OfficeIMO.Rtf.RtfHyperlinkFieldInfo? required
The value.

Returns

RtfField The same instance.

Examples

// C# initializer or property       // C# fluent
rtfField.HyperlinkField = value;    rtfField.HyperlinkField(value);
public static RtfField HyperlinkField(RtfField rtfField, Action<RtfHyperlinkFieldInfo> configure) #

Configures RtfField.HyperlinkField in place (creating it when not set): Parsed metadata for HYPERLINK fields. The raw RtfField.Instruction remains authoritative.

Parameters

rtfField OfficeIMO.Rtf.RtfField required
The instance.
configure System.Action<OfficeIMO.Rtf.RtfHyperlinkFieldInfo> required
Configures the value.

Returns

RtfField The same instance.
public static RtfField Instruction(RtfField rtfField, string value) #

Sets RtfField.Instruction: Raw field instruction text, for example PAGE \* MERGEFORMAT.

Parameters

rtfField OfficeIMO.Rtf.RtfField required
The instance.
value string required
The value.

Returns

RtfField The same instance.

Examples

// C# initializer or property    // C# fluent
rtfField.Instruction = value;    rtfField.Instruction(value);
public static RtfField Result(RtfField rtfField, Action<RtfParagraph> configure) #

Configures RtfField.Result in place: Visible field result content.

Parameters

rtfField OfficeIMO.Rtf.RtfField required
The instance.
configure System.Action<OfficeIMO.Rtf.RtfParagraph> required
Configures the value.

Returns

RtfField The same instance.