IWxObject.EndUpdate

Syntax

EndUpdate;

Description

The EndUpdate method enables object rerendering. After calling EndUpdate all changes of object properties are rendered, made between calls of the BeginUpdate and EndUpdate methods.

Example

Executing the example requires an existing ws object of the IWxWorkspace type.

Sub UserProc;

Var

ws: IWxWorkspace;

Shape: IWxShape;

Style: IWxStyle;

Begin

ws.BeginUpdate;

Shape := ws.Shapes.Item(0);

Style := Shape.Style;

Style.ShadowBrushForeColor := GxColor.FromName("Red");

Style.ShadowBrushForeTransparent := 50;

Style.ShadowBrushBackColor := GxColor.FromName("Blue");

Style.ShadowBrushBackTransparent := 10;

Style.ShadowBrushPattern := GxBrushPattern.Diagonals;

ws.EndUpdate;

End Sub UserProc;

After executing the example a shadow with the defined settings is displayed for the object.

See also:

IWxObject