Offset: IGxPointF;
The Offset property determines image offset relative to the workspace center.
By default, the workspace center matches the view center.
Executing the example requires a form with the Button1 button, the WorkspaceBox component named WorkspaceBox1 and a data source for the WorkspaceBox1.
Add links to the Andy, Drawing, Workspace system assemblies.
Sub Button1OnClick(Sender: Object; Args: IMouseEventArgs);
Var
ws: IWxWorkspace;
view: IWxView;
ellipse: IWxEllipse;
Begin
// Get workspace for editing
ws := UiWorkspace1.WxWorkspace;
view := ws.Views.Item(0);
ellipse := ws.CreateEllipse;
view.Offset := New GxPointF.Create(10, 10);
End Sub Button1OnClick;
After executing the example a workspace view is created and its identifier, scale, size and center offset are set.
See also: