# RtfShapeInstruction

Raw shape instruction control from an RTF \shpinst destination.

Class 

`OfficeIMO.Rtf`

**Namespace**

`OfficeIMO.Rtf`

**Assembly**

`OfficeIMO.Rtf`

**Source revision**

`ba882f6b0d07` with working tree changes

**Source**

[RtfShapeInstruction.cs:8](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Rtf/Model/RtfShapeInstruction.cs#L8)

**Implements**

`IRtfCloneable`

**Modifiers**

sealed

Raw shape instruction control from an RTF \shpinst destination.

## Inheritance

- object
- RtfShapeInstruction

## Usage

Explore 2 API references to this type

This type appears in these public API surfaces even when no hand-authored example is attached directly to the page.

### Returned or exposed by 2

- Method [RtfShape.AddInstruction](/api/rtf/officeimo-rtf-rtfshape/#method-addinstruction-string-nullable-system-int32-boolean)
- Property [RtfShape.Instructions](/api/rtf/officeimo-rtf-rtfshape/#property-instructions)

Filter members 

Show inherited

## Constructors

`public RtfShapeInstruction(string name, int? parameter = null, bool hasParameter = false)` [#](#constructor-ctor-string-nullable-system-int32-boolean)

[RtfShapeInstruction.cs:8](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Rtf/Model/RtfShapeInstruction.cs#L8)

Creates a shape instruction control.

Parameters

**name string required**

**parameter int? = null optional**

**hasParameter bool = false optional**

## 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?`

## Properties

`public string Name { get; }` [#](#property-name)

[RtfShapeInstruction.cs:16](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Rtf/Model/RtfShapeInstruction.cs#L16)

Control word name without the leading backslash.

`public int? Parameter { get; set; }` [#](#property-parameter)

[RtfShapeInstruction.cs:19](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Rtf/Model/RtfShapeInstruction.cs#L19)

Optional numeric control parameter.

`public bool HasParameter { get; set; }` [#](#property-hasparameter)

[RtfShapeInstruction.cs:22](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Rtf/Model/RtfShapeInstruction.cs#L22)

Whether the control explicitly supplied a parameter.

<!-- PowerForge markdown artifact sha256:9FBAFEB41ACCD1E4E0D9EB7342FA6E2DC445CD3605D4687EF81FD3BF8757B620 -->
