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

    Show / Hide Table of Contents

    ShapeType Enum

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

    Represents an enumeration of supported built-in shape types.

    • C#
    • VB.NET
    public enum ShapeType
    Public Enum ShapeType
    Remarks

    For more information about shapes and layout, see shapes and layout article and shapes example.

    Fields

    Custom

    The custom shape type.

    This member is only used when shape is read from the file, but its actual type is currently not supported.

    Diamond

    The Diamond.

    DownArrow

    The block arrow pointing down.

    Use adjust value 'adj1' to specify the thickness of the arrow shaft as a percentage of the width of the whole shape. Adjust value should be in range from 0 to 100000. Value of 0 yields very thin shaft (almost invisible) and value of 100000 forms the shaft of the same thickness as the width of the whole shape. Default value is 50000, which means that the arrow shaft thickness will be half of the shape width.

    Use adjust value 'adj2' to specify the length of the arrow tip as a percentage of the width of the whole shape. Adjust value should be in range from 0 to 100000 * Math.Max(height / width, 1). Value of 0 yields very small tip (almost invisible) and value of 100000 * Math.Max(height / width, 1) forms the tip of the same length as the height of the whole shape. Default value is 50000, which means that the arrow tip length will be half of the shape width.

    FlowchartDecision

    Flowchart: Decision.

    FlowchartManualInput

    Flowchart: Manual Input.

    FlowchartProcess

    Flowchart: Process.

    Hexagon

    The hexagon.

    Use adjust value 'adj' to specify the distance of the top and bottom points from the corners as a percentage of the height of the whole shape. Adjust value should be in range from 0 to 100000 * Math.Max(width / height, 1). Value of 0 yields a Rectangle and value of 100000 * Math.Max(width / height, 1) forms a Diamond Default value is 50000.

    IsoscelesTriangle

    The triangle.

    Use adjust value 'adj' to specify the distance of the top point from the left edge of the shape as a percentage of the width of the whole shape. Adjust value should be in range from 0 to 100000. Value of 0 yields a triangle with the right angle in the bottom left corner. (like RightTriangle) and value of 100000 forms a triangle with the right angle in the bottom tight corner. Default value is 50000, which form isosceles triangle.

    LeftArrow

    The block arrow pointing to the left.

    Use adjust value 'adj1' to specify the thickness of the arrow shaft as a percentage of the height of the whole shape. Adjust value should be in range from 0 to 100000. Value of 0 yields very thin shaft (almost invisible) and value of 100000 forms the shaft of the same thickness as the height of the whole shape. Default value is 50000, which means that the arrow shaft thickness will be half of the shape height.

    Use adjust value 'adj2' to specify the length of the arrow tip as a percentage of the height of the whole shape. Adjust value should be in range from 0 to 100000 * Math.Max(width / height, 1). Value of 0 yields very small tip (almost invisible) and value of 100000 * Math.Max(width / height, 1) forms the tip of the same length as the width of the whole shape. Default value is 50000, which means that the arrow tip length will be half of the shape height.

    LeftRightArrow

    The double-sided block arrow pointing to the left and right.

    Use adjust value 'adj1' to specify the thickness of the arrow shaft as a percentage of the height of the whole shape. Adjust value should be in range from 0 to 100000. Value of 0 yields very thin shaft (almost invisible) and value of 100000 forms the shaft of the same thickness as the height of the whole shape. Default value is 50000, which means that the arrow shaft thickness will be half of the shape height.

    Use adjust value 'adj2' to specify the length of the arrow tips as a percentage of the height of the whole shape. Adjust value should be in range from 0 to 50000 * Math.Max(width / height, 1). Value of 0 yields very small tips (almost invisible) and value of 50000 * Math.Max(width / height, 1) forms the tips of the same length as the half of the width of the whole shape. Default value is 50000, which means that the arrow tip length will be half of the shape height.

    Line

    The line.

    Octagon

    The octagon.

    Use adjust value 'adj' to specify the distance of the points from the corners as a percentage of the smaller dimension of the width and height of the shape. Adjust value should be in range from 0 to 50000. Value of 0 yields a Rectangle and value of 50000 forms a Hexagon. Default value is 30000.

    Oval

    The oval (ellipse).

    OvalCallout

    The oval callout (speech bubble).

    Use adjust values 'adj1' and 'adj2' to specify the position of the tip of the callout wedge.

    'adj1' specifies the horizontal position relatively to the center of the shape as the percentage of the shape width. Value of -50000 places the tip horizontally on the level of the left edge of the shape. Value of 50000 places it on the level of the right edge. Default value is -20000.

    'adj2' specifies the vertical position relatively to the center of the shape as the percentage of the shape height. Value of -50000 places the tip vertically on the level of the top edge of the shape. Value of 50000 places it on the level of the bottom edge. Default value is 60000.

    Parallelogram

    The Parallelogram.

    Use adjust value 'adj' to specify the distance of the top side from the left side and bottom side from the right side of the shape as a percentage of the height of the whole shape. Adjust value should be in range from 0 to 50000 * Math.Max(height / width, 1). Value of 0 yields trapezoid with top side adjacent to the left and right side (like Rectangle) and value of 100000 * Math.Max(height / width, 1) forms a trapezoid with top side of zero length (so basically a triangle). Default value is 50000.

    Pentagon

    The pentagon.

    PentagonArrow

    The block arrow in the shape of a pentagon pointing to the right.

    Use adjust value 'adj' to specify the length of the arrow tip as a percentage of the height of the whole shape. Adjust value should be in range from 0 to 100000 * Math.Max(width / height, 1). Value of 0 yields very small tip (almost invisible) and value of 100000 * Math.Max(width / height, 1) forms the tip of the same length as the width of the whole shape. Default value is 50000, which means that the arrow tip length will be half of the shape height.

    Rectangle

    The rectangle.

    RectangularCallout

    The rectangular callout (speech bubble).

    Use adjust values 'adj1' and 'adj2' to specify the position of the tip of the callout wedge.

    'adj1' specifies the horizontal position relatively to the center of the shape as the percentage of the shape width. Value of -50000 places the tip horizontally on the level of the left edge of the shape. Value of 50000 places it on the level of the right edge. Default value is -20000.

    'adj2' specifies the vertical position relatively to the center of the shape as the percentage of the shape height. Value of -50000 places the tip vertically on the level of the top edge of the shape. Value of 50000 places it on the level of the bottom edge. Default value is 60000.

    RightArrow

    The block arrow pointing to the right.

    Use adjust value 'adj1' to specify the thickness of the arrow shaft as a percentage of the height of the whole shape. Adjust value should be in range from 0 to 100000. Value of 0 yields very thin shaft (almost invisible) and value of 100000 forms the shaft of the same thickness as the height of the whole shape (like PentagonArrow). Default value is 50000, which means that the arrow shaft thickness will be half of the shape height.

    Use adjust value 'adj2' to specify the length of the arrow tip as a percentage of the height of the whole shape. Adjust value should be in range from 0 to 100000 * Math.Max(width / height, 1). Value of 0 yields very small tip (almost invisible) and value of 100000 * Math.Max(width / height, 1) forms the tip of the same length as the width of the whole shape. Default value is 50000, which means that the arrow tip length will be half of the shape height.

    RightTriangle

    The Triangle with the right angle in the bottom left corner.

    RoundDiagonalCornerRectangle

    The rectangle with rounded diagonal corners.

    Use adjust value 'adj1' to specify the amount of roundness for a top left and bottom right corner as a percentage of the smaller dimension of the width and height of the rectangle. Adjust value should be in range from 0 to 50000. Value of 0 yields square corners (like Rectangle) and value of 50000 forms circular corners (a square with adjust value of 50000 is a circle). Default value is 16667, which means that rounded corner radius will be 16.667% of the smaller dimension of the width and height of the rectangle.

    Use adjust value 'adj2' to specify the amount of roundness for a top right and bottom left corner as a percentage of the smaller dimension of the width and height of the rectangle. Adjust value should be in range from 0 to 50000. Value of 0 yields square corners (like Rectangle) and value of 50000 forms circular corners (a square with adjust value of 50000 is a circle). Default value is 16667, which means that rounded corner radius will be 16.667% of the smaller dimension of the width and height of the rectangle.

    RoundedRectangle

    The rectangle with rounded corners.

    Use adjust value 'adj' to specify the amount of roundness for a rounded rectangle as a percentage of the smaller dimension of the width and height of the rectangle. Adjust value should be in range from 0 to 50000. Value of 0 yields square corners (like Rectangle) and value of 50000 forms circular corners (a square with adjust value of 50000 is a circle). Default value is 16667, which means that rounded corner radius will be 16.667% of the smaller dimension of the width and height of the rectangle.

    RoundedRectangularCallout

    The rectangular callout (speech bubble) with rounded corners.

    Use adjust values 'adj1' and 'adj2' to specify the position of the tip of the callout wedge.

    'adj1' specifies the horizontal position relatively to the center of the shape as the percentage of the shape width. Value of -50000 places the tip horizontally on the level of the left edge of the shape. Value of 50000 places it on the level of the right edge. Default value is -20000.

    'adj2' specifies the vertical position relatively to the center of the shape as the percentage of the shape height. Value of -50000 places the tip vertically on the level of the top edge of the shape. Value of 50000 places it on the level of the bottom edge. Default value is 60000.

    RoundSameSideCornerRectangle

    The rectangle with rounded corners of the same side.

    Use adjust value 'adj1' to specify the amount of roundness for a top left and top right corner as a percentage of the smaller dimension of the width and height of the rectangle. Adjust value should be in range from 0 to 50000. Value of 0 yields square corners (like Rectangle) and value of 50000 forms circular corners (a square with adjust value of 50000 is a circle). Default value is 16667, which means that rounded corner radius will be 16.667% of the smaller dimension of the width and height of the rectangle.

    Use adjust value 'adj2' to specify the amount of roundness for a bottom left and bottom right corner as a percentage of the smaller dimension of the width and height of the rectangle. Adjust value should be in range from 0 to 50000. Value of 0 yields square corners (like Rectangle) and value of 50000 forms circular corners (a square with adjust value of 50000 is a circle). Default value is 16667, which means that rounded corner radius will be 16.667% of the smaller dimension of the width and height of the rectangle.

    RoundSingleCornerRectangle

    The rectangle with single rounded corner.

    Use adjust value 'adj' to specify the amount of roundness for a rounded rectangle corner as a percentage of the smaller dimension of the width and height of the rectangle. Adjust value should be in range from 0 to 50000. Value of 0 yields square corner (like Rectangle) and value of 50000 forms circular corner (a square with adjust value of 50000 is a circle). Default value is 16667, which means that rounded corner radius will be 16.667% of the smaller dimension of the width and height of the rectangle.

    SnipDiagonalCornerRectangle

    The rectangle with corners on the same diagonal snipped in the same way.

    Use adjust value 'adj1' to specify the distance of the top left and bottom right snip from the corner of the shape as a percentage of the smaller dimension of the width and height of the rectangle. Adjust value should be in range from 0 to 50000. Value of 0 yields a rectangle with no top snip and value of 50000 creates a snip with distance of half of the length of width or height depending which one is smaller. Default value is 16667. Use adjust value 'adj2' to specify the distance of the top right and bottom left snip from the corner of the shape as a percentage of the smaller dimension of the width and height of the rectangle. Adjust value should be in range from 0 to 50000. Value of 0 yields a rectangle with no top snip and value of 50000 creates a snip with distance of half of the length of width or height depending which one is smaller. Default value is 16667.

    SnipSameSideCornerRectangle

    The rectangle with top and bottom corners snipped in the same way.

    Use adjust value 'adj1' to specify the distance of the top snip from the corner of the shape as a percentage of the smaller dimension of the width and height of the rectangle. Adjust value should be in range from 0 to 50000. Value of 0 yields a rectangle with no top snip and value of 50000 creates a snip with distance of half of the length of width or height depending which one is smaller. Default value is 16667. Use adjust value 'adj2' to specify the distance of the bottom snip from the corner of the shape as a percentage of the smaller dimension of the width and height of the rectangle. Adjust value should be in range from 0 to 50000. Value of 0 yields a rectangle with no top snip and value of 50000 creates a snip with distance of half of the length of width or height depending which one is smaller. Default value is 16667.

    SnipSingleCornerRectangle

    The rectangle with top right corner snipped.

    Use adjust value 'adj' to specify the distance of the snip from the top right corner of the shape as a percentage of the smaller dimension of the width and height of the rectangle. Adjust value should be in range from 0 to 50000. Value of 0 yields a rectangle with no snip (like Rectangle) and value of 50000 creates a snip with distance of half of the length of width or height depending which one is smaller. Default value is 16667.

    TextPath

    The VML TextPath.

    Trapezoid

    The Trapezoid.

    Use adjust value 'adj' to specify the distance of the top side from the left (and right) side of the shape as a percentage of the height of the whole shape. Adjust value should be in range from 0 to 50000 * Math.Max(height / width, 1). Value of 0 yields trapezoid with top side adjacent to the left and right side (like Rectangle) and value of 100000 * Math.Max(height / width, 1) forms a trapezoid with top side of zero length (so basically a triangle). Default value is 50000.

    UpArrow

    The block arrow pointing up.

    Use adjust value 'adj1' to specify the thickness of the arrow shaft as a percentage of the width of the whole shape. Adjust value should be in range from 0 to 100000. Value of 0 yields very thin shaft (almost invisible) and value of 100000 forms the shaft of the same thickness as the width of the whole shape. Default value is 50000, which means that the arrow shaft thickness will be half of the shape width.

    Use adjust value 'adj2' to specify the length of the arrow tip as a percentage of the width of the whole shape. Adjust value should be in range from 0 to 100000 * Math.Max(height / width, 1). Value of 0 yields very small tip (almost invisible) and value of 100000 * Math.Max(height / width, 1) forms the tip of the same length as the height of the whole shape. Default value is 50000, which means that the arrow tip length will be half of the shape width.

    UpDownArrow

    The double-side block arrow pointing up and down.

    Use adjust value 'adj1' to specify the thickness of the arrow shaft as a percentage of the width of the whole shape. Adjust value should be in range from 0 to 100000. Value of 0 yields very thin shaft (almost invisible) and value of 100000 forms the shaft of the same thickness as the width of the whole shape. Default value is 50000, which means that the arrow shaft thickness will be half of the shape width.

    Use adjust value 'adj2' to specify the length of the arrow tip as a percentage of the width of the whole shape. Adjust value should be in range from 0 to 50000 * Math.Max(height / width, 1). Value of 0 yields very small tips (almost invisible) and value of 100000 * Math.Max(height / width, 1) forms the tips of the same length as the height of the whole shape. Default value is 50000, which means that the arrow tip length will be half of the shape width.

    Back to top

    Facebook • Twitter • LinkedIn

    © GemBox Ltd. — All rights reserved.