Type: PrxShapeType;
The Type property determines a shape type.
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(3, 3, 30, 30);
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: