Skip to main content

Search OfficeIMO

Enter a topic, API type, or PowerShell command.

Documentation Search all OfficeIMO/
Class

WordStructuredDocumentTagFluent

OfficeIMO.Word

Namespace
OfficeIMO.Word
Assembly
OfficeIMO.Word
Modifiers
static

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 required
The instance.
isBold bool = true optional
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 required
The instance.
color OfficeIMO.OfficeColor? required
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 required
The instance.
fontFamily string required
Name of the font family.

Returns

TSelf The same instance.
FontSize``1 2 overloads
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 required
The instance.
fontSize OfficeIMO.OfficeLength required
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 required
The instance.
value OfficeIMO.OfficeLength? required
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 required
The instance.
highlight OfficeIMO.Word.WordHighlightColor? required
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 required
The instance.
isItalic bool = true optional
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 required
The instance.
value string? required
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 required
The instance.
value string? required
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 required
The instance.
underline OfficeIMO.Word.WordUnderlineStyle? required
Underline style, or null to clear.

Returns

TSelf The same instance.