XOffset (Property)

Applies To:

Shapes collection (Placement node)

Description:

Enables the parent shape or control to be moved or resized. Sets or returns the position of the left-hand edge of a shape in pixels

Example:

In this example the XOffset Placement property is set to -10.

var objRect = ActiveSection.Shapes.CreateShape(bqRectangle)
objRect.Name = "LeftGoal"
objRect.Placement.XOffset = Field.Placement.XOffset - 10
objRect.Placement.YOffset = Field.Placement.YOffset - 10
objRect.Placement.Width = Ball.Placement.Width - 60
objRect.Placement.Height = Field.Placement.Height + 20
objRect.Fill.Color = bqBlack