DrawingLayout Class
Represents location, size and transformations (flipping and rotation) of the bounding box enclosing the drawing.
- Inheritance:
- DrawingLayout
Properties
FlipHorizontal
Gets or sets a value indicating whether to flip the drawing horizontally - reflect it across a vertical line that intersects the center of the drawing's bounding box.
Property Value
true to flip the drawing horizontally; otherwise, false.
FlipVertical
Gets or sets a value indicating whether to flip the drawing vertically - reflect it across a horizontal line that intersects the center of the drawing's bounding box.
Property Value
true to flip the drawing horizontally; otherwise, false.
Height
Gets or sets the height of the bounding box enclosing the drawing (prior to any rotation or flipping).
Property Value
The height of the bounding box enclosing the drawing (prior to any rotation or flipping).
Exceptions
Value is less than zero.
Left
Gets or sets the location of the left edge of the bounding box enclosing the drawing relative to the left edge of the slide on which the drawing is located (prior to any rotation or flipping).
Property Value
The location of the left edge of the bounding box enclosing the drawing relative to the left edge of the slide on which the drawing is located (prior to any rotation or flipping).
Rotation
Gets or sets the amount (in degrees) by which the drawing is rotated clockwise about the center of the drawing's bounding box.
Property Value
The amount (in degrees) by which the drawing is rotated clockwise about the center of the drawing's bounding box.
Top
Gets or sets the location of the top edge of the bounding box enclosing the drawing relative to the top edge of the slide on which the drawing is located (prior to any rotation or flipping).
Property Value
The location of the top edge of the bounding box enclosing the drawing relative to the top edge of the slide on which the drawing is located (prior to any rotation or flipping).
Width
Gets or sets the width of the bounding box enclosing the drawing (prior to any rotation or flipping).
Property Value
The width of the bounding box enclosing the drawing (prior to any rotation or flipping).
Exceptions
Value is less than zero.
Methods
Set(Double, Double, Double, Double, LengthUnit)
Sets the position and the size of the drawing (rotation and flipping are removed).
public void Set(double left, double top, double width, double height, LengthUnit unit)
Public Sub Set(left As Double, top As Double, width As Double, height As Double, unit As LengthUnit)
Parameters
left
- Double
The location of the left edge of the bounding box enclosing the drawing relative to the left edge of the slide on which the drawing is located (prior to any rotation or flipping).
top
- Double
The location of the top edge of the bounding box enclosing the drawing relative to the top edge of the slide on which the drawing is located (prior to any rotation or flipping).
width
- Double
The width of the bounding box enclosing the drawing (prior to any rotation or flipping).
height
- Double
The height of the bounding box enclosing the drawing (prior to any rotation or flipping).
unit
- LengthUnit
The measurement unit for left
, top
, width
and height
parameters.