Table of Contents

Class RtfShapeProperty

Namespace
iTextSharp.text.rtf.graphic
Assembly
iTextSharp.LGPLv2.Core.dll

The RtfShapeProperty stores all shape properties that are not handled by the RtfShape and RtfShapePosition. There is a huge selection of properties that can be set. For the most important properites there are constants for the property name, for all others you must find the correct property name in the RTF specification (version 1.6). The following types of property values are supported: long double bool Color int[] Point[] @version $Revision: 1.8 $ @author Mark Hall (Mark.Hall@mail.room3b.eu)

public class RtfShapeProperty : RtfAddableElement, IElement, IRtfBasicElement, IRtfElementInterface
Inheritance
RtfShapeProperty
Implements
Inherited Members

Constructors

RtfShapeProperty(string, bool)

Constructs a RtfShapeProperty with a bool value.

public RtfShapeProperty(string name, bool value)

Parameters

name string

The property name to use.

value bool

The bool value to use.

RtfShapeProperty(string, double)

Constructs a RtfShapeProperty with a double value.

public RtfShapeProperty(string name, double value)

Parameters

name string

The property name to use.

value double

The double value to use.

RtfShapeProperty(string, Point[])

Constructs a RtfShapeProperty with a Point array value.

public RtfShapeProperty(string name, Point[] value)

Parameters

name string

The property name to use.

value Point[]

The Point array to use.

RtfShapeProperty(string, int[])

Constructs a RtfShapeProperty with an int array value.

public RtfShapeProperty(string name, int[] value)

Parameters

name string

The property name to use.

value int[]

The int array to use.

RtfShapeProperty(string, long)

Constructs a RtfShapeProperty with a long value.

public RtfShapeProperty(string name, long value)

Parameters

name string

The property name to use.

value long

The long value to use.

RtfShapeProperty(string, BaseColor)

Constructs a RtfShapeProperty with a Color value.

public RtfShapeProperty(string name, BaseColor value)

Parameters

name string

The property name to use.

value BaseColor

The Color value to use.

RtfShapeProperty(string, Image)

Constructs a RtfShapeProperty with an Image value.

public RtfShapeProperty(string name, Image value)

Parameters

name string

The property name to use.

value Image

The Image to use.

Fields

PROPERTY_ADJUST_VALUE

Property for defining the first adjust handle for shapes. Used with the rounded rectangle. Requires a long value.

public const string PROPERTY_ADJUST_VALUE = "adjustValue"

Field Value

string

PROPERTY_FILL_COLOR

Property for defining the fill color of the shape. Requires a Color value.

public const string PROPERTY_FILL_COLOR = "fillColor"

Field Value

string

PROPERTY_FLIP_H

Property for signalling a horizontal flip of the shape. Requires a bool value.

public const string PROPERTY_FLIP_H = "fFlipH"

Field Value

string

PROPERTY_FLIP_V

Property for signalling a vertical flip of the shape. Requires a bool value.

public const string PROPERTY_FLIP_V = "fFlipV"

Field Value

string

PROPERTY_GEO_BOTTOM

Property for defining the maximum vertical coordinate that is visible. Requires a long value.

public const string PROPERTY_GEO_BOTTOM = "geoBottom"

Field Value

string

PROPERTY_GEO_LEFT

Property for defining the minimum horizontal coordinate that is visible. Requires a long value.

public const string PROPERTY_GEO_LEFT = "geoLeft"

Field Value

string

PROPERTY_GEO_RIGHT

Property for defining the maximum horizontal coordinate that is visible. Requires a long value.

public const string PROPERTY_GEO_RIGHT = "geoRight"

Field Value

string

PROPERTY_GEO_TOP

Property for defining the minimum vertical coordinate that is visible. Requires a long value.

public const string PROPERTY_GEO_TOP = "geoTop"

Field Value

string

PROPERTY_IMAGE

Property for defining an image.

public const string PROPERTY_IMAGE = "pib"

Field Value

string

PROPERTY_LAYOUT_IN_CELL

Property for defining that the shape is in a table cell. Requires a bool value.

public const string PROPERTY_LAYOUT_IN_CELL = "fLayoutInCell"

Field Value

string

PROPERTY_LINE_COLOR

Property for defining the line color of the shape. Requires a Color value.

public const string PROPERTY_LINE_COLOR = "lineColor"

Field Value

string

PROPERTY_VERTICIES

Property for defining vertices in freeform shapes. Requires a Point array as the value.

public const string PROPERTY_VERTICIES = "pVerticies"

Field Value

string

Methods

GetName()

Gets the name of this RtfShapeProperty.

public string GetName()

Returns

string

The name of this RtfShapeProperty.

WriteContent(Stream)

Write this RtfShapePosition.

public override void WriteContent(Stream outp)

Parameters

outp Stream