WordStructuredDocumentTagFluent
OfficeIMO.Word
The fluent methods of WordStructuredDocumentTag, 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
- WordStructuredDocumentTagFluent
Methods
public static TSelf Bold<TSelf>(TSelf wordStructuredDocumentTag, bool isBold = true) #Sets the content control text to bold and returns the instance for chaining.
Type Parameters
- TSelf
Parameters
- wordStructuredDocumentTag TSelf
- The instance.
- isBold bool = true
- Whether the text should be bold.
Returns
TSelf The same instance.public static TSelf Color<TSelf>(TSelf wordStructuredDocumentTag, OfficeColor? color) #Sets the text color and returns the instance for chaining.
Type Parameters
- TSelf
Parameters
- wordStructuredDocumentTag TSelf
- The instance.
- color OfficeIMO.OfficeColor?
- Text color, or null to clear.
Returns
TSelf The same instance.public static TSelf FontFamily<TSelf>(TSelf wordStructuredDocumentTag, string fontFamily) #Sets the font family and returns the instance for chaining.
Type Parameters
- TSelf
Parameters
- wordStructuredDocumentTag TSelf
- The instance.
- fontFamily string
- Name of the font family.
Returns
TSelf The same instance.public static TSelf FontSize<TSelf>(TSelf wordStructuredDocumentTag, OfficeLength fontSize) #Sets the font size in points and returns the instance for chaining.
Type Parameters
- TSelf
Parameters
- wordStructuredDocumentTag TSelf
- The instance.
- fontSize OfficeIMO.OfficeLength
- Font size in points.
Returns
TSelf The same instance.public static TSelf FontSize<TSelf>(TSelf wordStructuredDocumentTag, OfficeLength? value) #Sets WordStructuredDocumentTag.FontSize: Gets or sets the font size for the content control text.
Type Parameters
- TSelf
Parameters
- wordStructuredDocumentTag TSelf
- The instance.
- value OfficeIMO.OfficeLength?
- The value.
Returns
TSelf The same instance.Examples
// C# initializer or property // C# fluent
wordStructuredDocumentTag.FontSize = value; wordStructuredDocumentTag.FontSize(value);public static TSelf Highlight<TSelf>(TSelf wordStructuredDocumentTag, WordHighlightColor? highlight) #Sets the highlight color and returns the instance for chaining.
Type Parameters
- TSelf
Parameters
- wordStructuredDocumentTag TSelf
- The instance.
- highlight OfficeIMO.Word.WordHighlightColor?
- Highlight color, or null to clear.
Returns
TSelf The same instance.public static TSelf Italic<TSelf>(TSelf wordStructuredDocumentTag, bool isItalic = true) #Sets the content control text to italic and returns the instance for chaining.
Type Parameters
- TSelf
Parameters
- wordStructuredDocumentTag TSelf
- The instance.
- isItalic bool = true
- Whether the text should be italic.
Returns
TSelf The same instance.public static TSelf Tag<TSelf>(TSelf wordStructuredDocumentTag, string? value) #Sets WordStructuredDocumentTag.Tag: Gets or sets the tag value for this content control.
Type Parameters
- TSelf
Parameters
- wordStructuredDocumentTag TSelf
- The instance.
- value string?
- The value.
Returns
TSelf The same instance.Examples
// C# initializer or property // C# fluent
wordStructuredDocumentTag.Tag = value; wordStructuredDocumentTag.Tag(value);public static TSelf Text<TSelf>(TSelf wordStructuredDocumentTag, string? value) #Sets WordStructuredDocumentTag.Text: Gets or sets the inner text of the content control.
Type Parameters
- TSelf
Parameters
- wordStructuredDocumentTag TSelf
- The instance.
- value string?
- The value.
Returns
TSelf The same instance.Examples
// C# initializer or property // C# fluent
wordStructuredDocumentTag.Text = value; wordStructuredDocumentTag.Text(value);public static TSelf Underline<TSelf>(TSelf wordStructuredDocumentTag, WordUnderlineStyle? underline) #Sets the underline style and returns the instance for chaining.
Type Parameters
- TSelf
Parameters
- wordStructuredDocumentTag TSelf
- The instance.
- underline OfficeIMO.Word.WordUnderlineStyle?
- Underline style, or null to clear.
Returns
TSelf The same instance.