RtfFieldFluent
OfficeIMO.Rtf
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
- The instance.
- configure System.Action<OfficeIMO.Rtf.RtfFormFieldData>
- The value.
public static RtfField Hyperlink(RtfField rtfField, Uri? value) #Sets RtfField.Hyperlink: Parsed hyperlink target for HYPERLINK fields.
Parameters
- rtfField OfficeIMO.Rtf.RtfField
- The instance.
- value System.Uri?
- The value.
Examples
// C# initializer or property // C# fluent
rtfField.Hyperlink = value; rtfField.Hyperlink(value);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
- The instance.
- value OfficeIMO.Rtf.RtfHyperlinkFieldInfo?
- The value.
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
- The instance.
- configure System.Action<OfficeIMO.Rtf.RtfHyperlinkFieldInfo>
- Configures the value.
public static RtfField Instruction(RtfField rtfField, string value) #Sets RtfField.Instruction: Raw field instruction text, for example PAGE \* MERGEFORMAT.
Parameters
- rtfField OfficeIMO.Rtf.RtfField
- The instance.
- value string
- The value.
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
- The instance.
- configure System.Action<OfficeIMO.Rtf.RtfParagraph>
- Configures the value.