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

    Show / Hide Table of Contents

    Transform Class

    Namespace:
    GemBox.Document.Drawing
    Assembly:
    GemBox.Document.dll

    Represents 2-D transforms for ordinary shapes.

    • C#
    • VB.NET
    public sealed class Transform
    Public NotInheritable Class Transform
    Inheritance:
    System.Object
    Transform

    Properties

    FlipHorizontal

    Gets or sets a horizontal flip. When true, this property defines that the shape is flipped horizontally about the center of its bounding box.

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

    true if shape is flipped horizontally about the center of its bounding box; otherwise, false.

    Remarks

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

    FlipVertical

    Gets or sets a vertical flip. When true, this property defines that the shape is flipped vertically about the center of its bounding box.

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

    true if shape is flipped vertically about the center of its bounding box; otherwise, false.

    Remarks

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

    Rotation

    Gets or sets the rotation of the shape in degrees. Positive angles are clockwise (i.e., towards the positive y axis); negative angles are counter-clockwise (i.e., towards the negative y axis).

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

    The rotation of the shape in degrees.

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

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

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

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

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

    ToString()

    Returns a System.String that represents this Transform instance.

    • C#
    • VB.NET
    public override string ToString()
    Public Overrides Function ToString As String
    Returns
    System.String

    A System.String that represents this Transform instance.

    Overrides
    System.Object.ToString()
    Back to top

    Facebook • Twitter • LinkedIn

    © GemBox Ltd. — All rights reserved.