Skip to main content

Search OfficeIMO

Enter a topic, API type, or PowerShell command.

Documentation Search all OfficeIMO/
Class

RtfStyleKeyCodeFluent

OfficeIMO.Rtf

Namespace
OfficeIMO.Rtf
Assembly
OfficeIMO.Rtf
Modifiers
static

The fluent methods of RtfStyleKeyCode, 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
  • RtfStyleKeyCodeFluent

Methods

public static RtfStyleKeyCode Alt(RtfStyleKeyCode rtfStyleKeyCode, bool value = true) #

Sets RtfStyleKeyCode.Alt: Whether the shortcut includes the ALT modifier.

Parameters

rtfStyleKeyCode OfficeIMO.Rtf.RtfStyleKeyCode required
The instance.
value bool = true optional
The value; true when omitted.

Returns

RtfStyleKeyCode The same instance.

Examples

// C# initializer or property                                 // C# fluent
new global::OfficeIMO.Rtf.RtfStyleKeyCode { Alt = value };    rtfStyleKeyCode.Alt(value);
public static RtfStyleKeyCode Control(RtfStyleKeyCode rtfStyleKeyCode, bool value = true) #

Sets RtfStyleKeyCode.Control: Whether the shortcut includes the CTRL modifier.

Parameters

rtfStyleKeyCode OfficeIMO.Rtf.RtfStyleKeyCode required
The instance.
value bool = true optional
The value; true when omitted.

Returns

RtfStyleKeyCode The same instance.

Examples

// C# initializer or property                                     // C# fluent
new global::OfficeIMO.Rtf.RtfStyleKeyCode { Control = value };    rtfStyleKeyCode.Control(value);
public static RtfStyleKeyCode FunctionKey(RtfStyleKeyCode rtfStyleKeyCode, int? value) #

Sets RtfStyleKeyCode.FunctionKey: Optional function-key number from \fn.

Parameters

rtfStyleKeyCode OfficeIMO.Rtf.RtfStyleKeyCode required
The instance.
value int? required
The value.

Returns

RtfStyleKeyCode The same instance.

Examples

// C# initializer or property                                         // C# fluent
new global::OfficeIMO.Rtf.RtfStyleKeyCode { FunctionKey = value };    rtfStyleKeyCode.FunctionKey(value);
public static RtfStyleKeyCode Key(RtfStyleKeyCode rtfStyleKeyCode, string? value) #

Sets RtfStyleKeyCode.Key: Optional literal key text.

Parameters

rtfStyleKeyCode OfficeIMO.Rtf.RtfStyleKeyCode required
The instance.
value string? required
The value.

Returns

RtfStyleKeyCode The same instance.

Examples

// C# initializer or property                                 // C# fluent
new global::OfficeIMO.Rtf.RtfStyleKeyCode { Key = value };    rtfStyleKeyCode.Key(value);
public static RtfStyleKeyCode Shift(RtfStyleKeyCode rtfStyleKeyCode, bool value = true) #

Sets RtfStyleKeyCode.Shift: Whether the shortcut includes the SHIFT modifier.

Parameters

rtfStyleKeyCode OfficeIMO.Rtf.RtfStyleKeyCode required
The instance.
value bool = true optional
The value; true when omitted.

Returns

RtfStyleKeyCode The same instance.

Examples

// C# initializer or property                                   // C# fluent
new global::OfficeIMO.Rtf.RtfStyleKeyCode { Shift = value };    rtfStyleKeyCode.Shift(value);