Skip to main content

Search OfficeIMO

Enter a topic, API type, or PowerShell command.

Documentation Search all OfficeIMO/
Class

WordTextBoxFluent

OfficeIMO.Word

Namespace
OfficeIMO.Word
Assembly
OfficeIMO.Word
Modifiers
static

The fluent methods of WordTextBox, 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
  • WordTextBoxFluent

Methods

public static TSelf AutoFitToTextSize<TSelf>(TSelf wordTextBox, bool value = true) #

Sets WordTextBox.AutoFitToTextSize: Gets or sets whether the box resizes to fit its text.

Type Parameters

TSelf

Parameters

wordTextBox TSelf required
The instance.
value bool = true optional
The value; true when omitted.

Returns

TSelf The same instance.

Examples

// C# initializer or property             // C# fluent
wordTextBox.AutoFitToTextSize = value;    wordTextBox.AutoFitToTextSize(value);
public static TSelf AutoFit<TSelf>(TSelf wordTextBox, WordTextBoxAutoFitType value) #

Sets WordTextBox.AutoFit: Gets or sets how the box automatically fits its text.

Type Parameters

TSelf

Parameters

wordTextBox TSelf required
The instance.
value OfficeIMO.Word.WordTextBoxAutoFitType required
The value.

Returns

TSelf The same instance.

Examples

// C# initializer or property    // C# fluent
wordTextBox.AutoFit = value;     wordTextBox.AutoFit(value);
public static TSelf Description<TSelf>(TSelf wordTextBox, string? value) #

Sets WordTextBox.Description: Gets or sets the accessibility description for the text box.

Type Parameters

TSelf

Parameters

wordTextBox TSelf required
The instance.
value string? required
The value.

Returns

TSelf The same instance.

Examples

// C# initializer or property       // C# fluent
wordTextBox.Description = value;    wordTextBox.Description(value);
public static TSelf FillColor<TSelf>(TSelf wordTextBox, OfficeColor? value) #

Sets WordTextBox.FillColor: Gets or sets the DrawingML solid RGB fill.

Type Parameters

TSelf

Parameters

wordTextBox TSelf required
The instance.
value OfficeIMO.OfficeColor? required
The value.

Returns

TSelf The same instance.

Examples

// C# initializer or property     // C# fluent
wordTextBox.FillColor = value;    wordTextBox.FillColor(value);
public static TSelf Height<TSelf>(TSelf wordTextBox, OfficeLength value) #

Sets WordTextBox.Height: Gets or sets the physical height of the box.

Type Parameters

TSelf

Parameters

wordTextBox TSelf required
The instance.
value OfficeIMO.OfficeLength required
The value.

Returns

TSelf The same instance.

Examples

// C# initializer or property    // C# fluent
wordTextBox.Height = value;      wordTextBox.Height(value);
public static TSelf HorizontalAlignment<TSelf>(TSelf wordTextBox, WordTextBoxHorizontalAlignment value) #

Sets WordTextBox.HorizontalAlignment: Gets or sets the horizontal alignment for anchored boxes.

Type Parameters

TSelf

Parameters

wordTextBox TSelf required
The instance.
value OfficeIMO.Word.WordTextBoxHorizontalAlignment required
The value.

Returns

TSelf The same instance.

Examples

// C# initializer or property               // C# fluent
wordTextBox.HorizontalAlignment = value;    wordTextBox.HorizontalAlignment(value);
public static TSelf HorizontalPositionOffset<TSelf>(TSelf wordTextBox, OfficeLength? value) #

Sets WordTextBox.HorizontalPositionOffset: Gets or sets a horizontal offset in physical units.

Type Parameters

TSelf

Parameters

wordTextBox TSelf required
The instance.
value OfficeIMO.OfficeLength? required
The value.

Returns

TSelf The same instance.

Examples

// C# initializer or property                    // C# fluent
wordTextBox.HorizontalPositionOffset = value;    wordTextBox.HorizontalPositionOffset(value);
public static TSelf HorizontalPositionRelativeFrom<TSelf>(TSelf wordTextBox, WordHorizontalRelativePosition? value) #

Sets WordTextBox.HorizontalPositionRelativeFrom: Gets or sets the horizontal position reference point.

Type Parameters

TSelf

Parameters

wordTextBox TSelf required
The instance.
value OfficeIMO.Word.WordHorizontalRelativePosition? required
The value.

Returns

TSelf The same instance.

Examples

// C# initializer or property                          // C# fluent
wordTextBox.HorizontalPositionRelativeFrom = value;    wordTextBox.HorizontalPositionRelativeFrom(value);
public static TSelf RelativeHeightPercentage<TSelf>(TSelf wordTextBox, int? value) #

Sets WordTextBox.RelativeHeightPercentage: Gets or sets the relative height percentage.

Type Parameters

TSelf

Parameters

wordTextBox TSelf required
The instance.
value int? required
The value.

Returns

TSelf The same instance.

Examples

// C# initializer or property                    // C# fluent
wordTextBox.RelativeHeightPercentage = value;    wordTextBox.RelativeHeightPercentage(value);
public static TSelf RelativeWidthPercentage<TSelf>(TSelf wordTextBox, int? value) #

Sets WordTextBox.RelativeWidthPercentage: Gets or sets the relative width percentage.

Type Parameters

TSelf

Parameters

wordTextBox TSelf required
The instance.
value int? required
The value.

Returns

TSelf The same instance.

Examples

// C# initializer or property                   // C# fluent
wordTextBox.RelativeWidthPercentage = value;    wordTextBox.RelativeWidthPercentage(value);
public static TSelf SizeRelativeHorizontally<TSelf>(TSelf wordTextBox, WordTextBoxHorizontalSizeReference? value) #

Sets WordTextBox.SizeRelativeHorizontally: Gets or sets the horizontal reference used by relative sizing.

Type Parameters

TSelf

Parameters

wordTextBox TSelf required
The instance.
value OfficeIMO.Word.WordTextBoxHorizontalSizeReference? required
The value.

Returns

TSelf The same instance.

Examples

// C# initializer or property                    // C# fluent
wordTextBox.SizeRelativeHorizontally = value;    wordTextBox.SizeRelativeHorizontally(value);
public static TSelf VerticalPositionOffset<TSelf>(TSelf wordTextBox, OfficeLength? value) #

Sets WordTextBox.VerticalPositionOffset: Gets or sets a vertical offset in physical units.

Type Parameters

TSelf

Parameters

wordTextBox TSelf required
The instance.
value OfficeIMO.OfficeLength? required
The value.

Returns

TSelf The same instance.

Examples

// C# initializer or property                  // C# fluent
wordTextBox.VerticalPositionOffset = value;    wordTextBox.VerticalPositionOffset(value);
public static TSelf VerticalPositionRelativeFrom<TSelf>(TSelf wordTextBox, WordVerticalRelativePosition value) #

Sets WordTextBox.VerticalPositionRelativeFrom: Gets or sets the vertical position reference point.

Type Parameters

TSelf

Parameters

wordTextBox TSelf required
The instance.
value OfficeIMO.Word.WordVerticalRelativePosition required
The value.

Returns

TSelf The same instance.

Examples

// C# initializer or property                        // C# fluent
wordTextBox.VerticalPositionRelativeFrom = value;    wordTextBox.VerticalPositionRelativeFrom(value);
public static TSelf Width<TSelf>(TSelf wordTextBox, OfficeLength value) #

Sets WordTextBox.Width: Gets or sets the physical width of the box.

Type Parameters

TSelf

Parameters

wordTextBox TSelf required
The instance.
value OfficeIMO.OfficeLength required
The value.

Returns

TSelf The same instance.

Examples

// C# initializer or property    // C# fluent
wordTextBox.Width = value;       wordTextBox.Width(value);
public static TSelf WrapText<TSelf>(TSelf wordTextBox, WordImageTextWrapping? value) #

Sets WordTextBox.WrapText: Gets or sets the text wrapping mode for the box.

Type Parameters

TSelf

Parameters

wordTextBox TSelf required
The instance.
value OfficeIMO.Word.WordImageTextWrapping? required
The value.

Returns

TSelf The same instance.

Examples

// C# initializer or property    // C# fluent
wordTextBox.WrapText = value;    wordTextBox.WrapText(value);
public static TSelf ZOrder<TSelf>(TSelf wordTextBox, uint value) #

Sets WordTextBox.ZOrder: Gets or sets the DrawingML anchor stacking order.

Type Parameters

TSelf

Parameters

wordTextBox TSelf required
The instance.
value uint required
The value.

Returns

TSelf The same instance.

Examples

// C# initializer or property    // C# fluent
wordTextBox.ZOrder = value;      wordTextBox.ZOrder(value);