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:
    System.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
    System.Boolean

    true to flip the drawing horizontally; otherwise, false.

    Remarks

    When set to a value different than the current FlipHorizontal, MS PowerPoint automatically inverts the Rotation to 360° - Rotation (normalized to the interval [0°, 360°>). To follow the MS PowerPoint's behavior, you should do the same or simply use the FlipHorizontally() method.

    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
    System.Boolean

    true to flip the drawing horizontally; otherwise, false.

    Remarks

    When set to a value different than the current FlipVertical, MS PowerPoint automatically inverts the Rotation to 360° - Rotation (normalized to the interval [0°, 360°>). To follow the MS PowerPoint's behavior, you should do the same or simply use the FlipVertically() method.

    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
    System.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
    System.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
    System.ArgumentOutOfRangeException

    Value is less than zero.

    Methods

    FlipHorizontally()

    Inverts the value of the FlipHorizontal.

    The Rotation is also inverted to 360° - Rotation (normalized to the interval [0°, 360°>) like in MS PowerPoint.

    • C#
    • VB.NET
    public DrawingLayout FlipHorizontally()
    Public Function FlipHorizontally As DrawingLayout
    Returns
    DrawingLayout

    A reference to this instance after the flipping operation has completed.

    FlipVertically()

    Inverts the value of the FlipVertical.

    The Rotation is also inverted to 360° - Rotation (normalized to the interval [0°, 360°>) like in MS PowerPoint.

    • C#
    • VB.NET
    public DrawingLayout FlipVertically()
    Public Function FlipVertically As DrawingLayout
    Returns
    DrawingLayout

    A reference to this instance after the flipping operation has completed.

    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
    System.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
    System.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
    System.Double

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

    height
    System.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.