Skip to main content

Search OfficeIMO

Enter a topic, API type, or PowerShell command.

Documentation Search all OfficeIMO/

API Reference

Class

RtfShape

Namespace OfficeIMO.Rtf
Assembly OfficeIMO.Rtf
Implements
IRtfCloneable IRtfInline IRtfBlock
Modifiers sealed

Dependency-free representation of an RTF drawing shape, including raw instructions, named properties, and optional text-box content.

Inheritance

  • Object
  • RtfShape

Usage

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

Returned or exposed by

Constructors

Methods

public RtfShapeInstruction AddInstruction(String name, Nullable<Int32> parameter = null, Boolean hasParameter = true) #
Returns: RtfShapeInstruction

Adds a raw shape instruction control.

Parameters

name System.String requiredposition: 0
parameter System.Nullable{System.Int32} = null optionalposition: 1
hasParameter System.Boolean = true optionalposition: 2
public RtfShapeProperty AddProperty(String name, String value = null) #
Returns: RtfShapeProperty

Adds a named shape property.

Parameters

name System.String requiredposition: 0
value System.String = null optionalposition: 1
public RtfParagraph AddTextBoxParagraph(String text = null) #
Returns: RtfParagraph

Adds a paragraph to the shape text box.

Parameters

text System.String = null optionalposition: 0
public String ToPlainText() #
Returns: String

Returns text-box content with paragraphs separated by new lines.

Properties

public IReadOnlyList<RtfShapeInstruction> Instructions { get; } #

Raw shape instruction controls from \shpinst.

public IReadOnlyList<RtfShapeProperty> Properties { get; } #

Named shape properties from \sp groups.

public IReadOnlyList<RtfParagraph> TextBoxParagraphs { get; } #

Paragraphs contained by the shape text box destination.