# RtfObjectFluent

The fluent methods of RtfObject, generated from its public properties: A property-named method sets a property and a singular-named method adds…

Class 

`OfficeIMO.Rtf`

**Namespace**

`OfficeIMO.Rtf`

**Assembly**

`OfficeIMO.Rtf`

**Modifiers**

static

The fluent methods of [RtfObject](/api/rtf/officeimo-rtf-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

Filter members 

Show inherited

## Methods

`public static RtfObject ClassName(RtfObject rtfObject, string? value)` [#](#method-classname-officeimo-rtf-rtfobject-string)

Sets [RtfObject.ClassName](/api/rtf/officeimo-rtf-rtfobject/): 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

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

`public static RtfObject Data(RtfObject rtfObject, byte[] value)` [#](#method-data-officeimo-rtf-rtfobject-byte)

Sets [RtfObject.Data](/api/rtf/officeimo-rtf-rtfobject/): 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

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

`public static RtfObject Height(RtfObject rtfObject, int? value)` [#](#method-height-officeimo-rtf-rtfobject-nullable-system-int32)

Sets [RtfObject.Height](/api/rtf/officeimo-rtf-rtfobject/): 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

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

`public static RtfObject Kind(RtfObject rtfObject, RtfObjectKind value)` [#](#method-kind-officeimo-rtf-rtfobject-officeimo-rtf-rtfobjectkind)

Sets [RtfObject.Kind](/api/rtf/officeimo-rtf-rtfobject/): 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

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

`public static RtfObject Name(RtfObject rtfObject, string? value)` [#](#method-name-officeimo-rtf-rtfobject-string)

Sets [RtfObject.Name](/api/rtf/officeimo-rtf-rtfobject/): 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

```csharp
// 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)` [#](#method-result-officeimo-rtf-rtfobject-action-officeimo-rtf-rtfparagraph)

Configures [RtfObject.Result](/api/rtf/officeimo-rtf-rtfobject/) 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)` [#](#method-resultimage-officeimo-rtf-rtfobject-officeimo-rtf-rtfimage)

Sets [RtfObject.ResultImage](/api/rtf/officeimo-rtf-rtfobject/): 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

```csharp
// 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)` [#](#method-resultimage-officeimo-rtf-rtfobject-action-officeimo-rtf-rtfimage)

Configures [RtfObject.ResultImage](/api/rtf/officeimo-rtf-rtfobject/) 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)` [#](#method-scalex-officeimo-rtf-rtfobject-nullable-system-int32)

Sets [RtfObject.ScaleX](/api/rtf/officeimo-rtf-rtfobject/): 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

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

`public static RtfObject ScaleY(RtfObject rtfObject, int? value)` [#](#method-scaley-officeimo-rtf-rtfobject-nullable-system-int32)

Sets [RtfObject.ScaleY](/api/rtf/officeimo-rtf-rtfobject/): 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

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

`public static RtfObject Width(RtfObject rtfObject, int? value)` [#](#method-width-officeimo-rtf-rtfobject-nullable-system-int32)

Sets [RtfObject.Width](/api/rtf/officeimo-rtf-rtfobject/): 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

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

## Inherited Methods

`public virtual bool Equals(object? obj)` [#](#method-equals-object)

Inherited from object

Parameters

**obj object? required**

Returns

`bool`

`public virtual int GetHashCode()` [#](#method-gethashcode)

Inherited from object

Returns

`int`

`public Type GetType()` [#](#method-gettype)

Inherited from object

Returns

`Type`

`public virtual string? ToString()` [#](#method-tostring)

Inherited from object

Returns

`string?`

<!-- PowerForge markdown artifact sha256:94A98B15A281240C18E2E2C0AF887F49B92B5159C83D57C6938437177BB1F8BF -->
