GemBox.Presentation
  • Overview
  • Examples
  • Free version
  • Support
  • Pricelist

    Show / Hide Table of Contents

    DrawingLayout Class

    Namespace:
    GemBox.Presentation
    Assembly:
    GemBox.Presentation.dll

    Represents location, size and transformations (flipping and rotation) of the bounding box enclosing the drawing.

    • C#
    • VB.NET
    public sealed class DrawingLayout
    Public NotInheritable Class DrawingLayout
    Inheritance:
    Object
    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.

    • C#
    • VB.NET
    public bool FlipHorizontal { get; set; }
    Public Property FlipHorizontal As Boolean
    Property Value
    Boolean

    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.

    • C#
    • VB.NET
    public bool FlipVertical { get; set; }
    Public Property FlipVertical As Boolean
    Property Value
    Boolean

    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).

    • C#
    • VB.NET
    public Length Height { get; set; }
    Public Property Height As Length
    Property Value
    Length

    The height of the bounding box enclosing the drawing (prior to any rotation or flipping).

    Exceptions
    ArgumentOutOfRangeException

    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).

    • C#
    • VB.NET
    public Length Left { get; set; }
    Public Property Left As Length
    Property Value
    Length

    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.

    • C#
    • VB.NET
    public double Rotation { get; set; }
    Public Property Rotation As Double
    Property Value
    Double

    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).

    • C#
    • VB.NET
    public Length Top { get; set; }
    Public Property Top As Length
    Property Value
    Length

    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).

    • C#
    • VB.NET
    public Length Width { get; set; }
    Public Property Width As Length
    Property Value
    Length

    The width of the bounding box enclosing the drawing (prior to any rotation or flipping).

    Exceptions
    ArgumentOutOfRangeException

    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).

    • C#
    • VB.NET
    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.

    Back to top

    Facebook • Twitter • LinkedIn

    © GemBox Ltd. — All rights reserved.