IPrxShape.Type

Syntax

Type: PrxShapeType;

Description

The Type property determines a shape type.

Example

To execute the example a form with a button named Button1 on it, the TabSheetBox component, and the UiTabSheet component named UiTabSheet1, that is used as a data source for TabSheetBox are required. Add links to the Report, Tab, Drawing, Forms system assemblies.

Sub Button1OnClick(Sender: Object; Args: IMouseEventArgs);
Var
    Tab: ITabSheet;
    TabObj: ITabObject;
    Placement: IGxRectF;
    PrxShape: IPrxShape;
Begin
    Tab := UiTabSheet1.TabSheet;
    Placement := 
New GxRectF.Create(333030);
    TabObj := Tab.Objects.Add(
"PrxShape", Placement);
    PrxShape := TabObj.Extension 
As IPrxShape;
    PrxShape.Type := PrxShapeType.Octagon;
End Sub Button1OnClick;

On clicking the button an octagon is created on the report sheet:

See also:

IPrxShape