Skip to main content

Search OfficeIMO

Enter a topic, API type, or PowerShell command.

Documentation Search all OfficeIMO/
Class

RtfObjectFluent

OfficeIMO.Rtf

Namespace
OfficeIMO.Rtf
Assembly
OfficeIMO.Rtf
Modifiers
static

The fluent methods of RtfObject, 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
  • RtfObjectFluent

Methods

public static RtfObject ClassName(RtfObject rtfObject, string? value) #

Sets RtfObject.ClassName: Object class text from \objclass when present.

Parameters

rtfObject OfficeIMO.Rtf.RtfObject required
The instance.
value string? required
The value.

Returns

RtfObject The same instance.

Examples

// C# initializer or property                                 // C# fluent
new global::OfficeIMO.Rtf.RtfObject { ClassName = value };    rtfObject.ClassName(value);
public static RtfObject Data(RtfObject rtfObject, byte[] value) #

Sets RtfObject.Data: Raw bytes from the \objdata destination.

Parameters

rtfObject OfficeIMO.Rtf.RtfObject required
The instance.
value byte[] required
The value.

Returns

RtfObject The same instance.

Examples

// C# initializer or property                            // C# fluent
new global::OfficeIMO.Rtf.RtfObject { Data = value };    rtfObject.Data(value);
public static RtfObject Height(RtfObject rtfObject, int? value) #

Sets RtfObject.Height: Object source height in twips or object units when declared by \objh.

Parameters

rtfObject OfficeIMO.Rtf.RtfObject required
The instance.
value int? required
The value.

Returns

RtfObject The same instance.

Examples

// C# initializer or property                              // C# fluent
new global::OfficeIMO.Rtf.RtfObject { Height = value };    rtfObject.Height(value);
public static RtfObject Kind(RtfObject rtfObject, RtfObjectKind value) #

Sets RtfObject.Kind: Object embedding or linking kind.

Parameters

rtfObject OfficeIMO.Rtf.RtfObject required
The instance.
value OfficeIMO.Rtf.RtfObjectKind required
The value.

Returns

RtfObject The same instance.

Examples

// C# initializer or property                            // C# fluent
new global::OfficeIMO.Rtf.RtfObject { Kind = value };    rtfObject.Kind(value);
public static RtfObject Name(RtfObject rtfObject, string? value) #

Sets RtfObject.Name: Object name text from \objname when present.

Parameters

rtfObject OfficeIMO.Rtf.RtfObject required
The instance.
value string? required
The value.

Returns

RtfObject The same instance.

Examples

// C# initializer or property                            // C# fluent
new global::OfficeIMO.Rtf.RtfObject { Name = value };    rtfObject.Name(value);
public static RtfObject Result(RtfObject rtfObject, Action<RtfParagraph> configure) #

Configures RtfObject.Result in place: Textual/rich fallback result shown by readers that cannot activate the object.

Parameters

rtfObject OfficeIMO.Rtf.RtfObject required
The instance.
configure System.Action<OfficeIMO.Rtf.RtfParagraph> required
Configures the value.

Returns

RtfObject The same instance.
ResultImage 2 overloads
public static RtfObject ResultImage(RtfObject rtfObject, RtfImage? value) #

Sets RtfObject.ResultImage: Picture fallback result when the object declares a result picture.

Parameters

rtfObject OfficeIMO.Rtf.RtfObject required
The instance.
value OfficeIMO.Rtf.RtfImage? required
The value.

Returns

RtfObject The same instance.

Examples

// C# initializer or property                                   // C# fluent
new global::OfficeIMO.Rtf.RtfObject { ResultImage = value };    rtfObject.ResultImage(value);
public static RtfObject ResultImage(RtfObject rtfObject, Action<RtfImage> configure) #

Configures RtfObject.ResultImage in place: Picture fallback result when the object declares a result picture.

Parameters

rtfObject OfficeIMO.Rtf.RtfObject required
The instance.
configure System.Action<OfficeIMO.Rtf.RtfImage> required
Configures the value.

Returns

RtfObject The same instance.
public static RtfObject ScaleX(RtfObject rtfObject, int? value) #

Sets RtfObject.ScaleX: Horizontal scale percentage when declared by \objscalex.

Parameters

rtfObject OfficeIMO.Rtf.RtfObject required
The instance.
value int? required
The value.

Returns

RtfObject The same instance.

Examples

// C# initializer or property                              // C# fluent
new global::OfficeIMO.Rtf.RtfObject { ScaleX = value };    rtfObject.ScaleX(value);
public static RtfObject ScaleY(RtfObject rtfObject, int? value) #

Sets RtfObject.ScaleY: Vertical scale percentage when declared by \objscaley.

Parameters

rtfObject OfficeIMO.Rtf.RtfObject required
The instance.
value int? required
The value.

Returns

RtfObject The same instance.

Examples

// C# initializer or property                              // C# fluent
new global::OfficeIMO.Rtf.RtfObject { ScaleY = value };    rtfObject.ScaleY(value);
public static RtfObject Width(RtfObject rtfObject, int? value) #

Sets RtfObject.Width: Object source width in twips or object units when declared by \objw.

Parameters

rtfObject OfficeIMO.Rtf.RtfObject required
The instance.
value int? required
The value.

Returns

RtfObject The same instance.

Examples

// C# initializer or property                             // C# fluent
new global::OfficeIMO.Rtf.RtfObject { Width = value };    rtfObject.Width(value);