API Reference
PowerPointShape
Base class for shapes used on PowerPoint slides.
Inheritance
- Object
- PowerPointShape
Methods
public Void BringToFront() #VoidMoves the shape to the front (top) of the z-order within its parent.
public Void MoveBy(Int64 offsetX, Int64 offsetY) #VoidMoves the shape by the specified offsets in EMUs.
Parameters
- offsetX System.Int64
- offsetY System.Int64
public Void MoveByCm(Double offsetXCm, Double offsetYCm) #VoidMoves the shape by the specified offsets in centimeters.
Parameters
- offsetXCm System.Double
- offsetYCm System.Double
public Void MoveByInches(Double offsetXInches, Double offsetYInches) #VoidMoves the shape by the specified offsets in inches.
Parameters
- offsetXInches System.Double
- offsetYInches System.Double
public Void MoveByPoints(Double offsetXPoints, Double offsetYPoints) #VoidMoves the shape by the specified offsets in points.
Parameters
- offsetXPoints System.Double
- offsetYPoints System.Double
public Void Resize(Int64 width, Int64 height, PowerPointShapeAnchor anchor = TopLeft) #VoidResizes the shape while keeping the specified anchor fixed.
Parameters
- width System.Int64
- height System.Int64
- anchor OfficeIMO.PowerPoint.PowerPointShapeAnchor = TopLeft
public Void ResizeCm(Double widthCm, Double heightCm, PowerPointShapeAnchor anchor = TopLeft) #VoidResizes the shape using centimeters while keeping the specified anchor fixed.
Parameters
- widthCm System.Double
- heightCm System.Double
- anchor OfficeIMO.PowerPoint.PowerPointShapeAnchor = TopLeft
public Void ResizeInches(Double widthInches, Double heightInches, PowerPointShapeAnchor anchor = TopLeft) #VoidResizes the shape using inches while keeping the specified anchor fixed.
Parameters
- widthInches System.Double
- heightInches System.Double
- anchor OfficeIMO.PowerPoint.PowerPointShapeAnchor = TopLeft
public Void ResizePoints(Double widthPoints, Double heightPoints, PowerPointShapeAnchor anchor = TopLeft) #VoidResizes the shape using points while keeping the specified anchor fixed.
Parameters
- widthPoints System.Double
- heightPoints System.Double
- anchor OfficeIMO.PowerPoint.PowerPointShapeAnchor = TopLeft
public Void Scale(Double scale, PowerPointShapeAnchor anchor = Center) #VoidScales the shape uniformly using the specified anchor.
Parameters
- scale System.Double
- anchor OfficeIMO.PowerPoint.PowerPointShapeAnchor = Center
public Void Scale(Double scaleX, Double scaleY, PowerPointShapeAnchor anchor = Center) #VoidScales the shape using separate X/Y factors and the specified anchor.
Parameters
- scaleX System.Double
- scaleY System.Double
- anchor OfficeIMO.PowerPoint.PowerPointShapeAnchor = Center
public Void SendToBack() #VoidMoves the shape to the back (bottom) of the z-order within its parent.
public Void SetBlur(Double radiusPoints, Boolean grow = false) #VoidApplies a blur effect to the shape.
Parameters
- radiusPoints System.Double
- grow System.Boolean = false
public Void SetGlow(String color, Double radiusPoints = 4, Int32 transparencyPercent = 30) #VoidApplies a glow effect to the shape.
Parameters
- color System.String
- radiusPoints System.Double = 4
- transparencyPercent System.Int32 = 30
public Void SetLineEnds(Nullable<LineEndValues> startType, Nullable<LineEndValues> endType, Nullable<LineEndWidthValues> width = null, Nullable<LineEndLengthValues> length = null) #VoidSets arrowheads for line-based shapes.
Parameters
- startType System.Nullable{DocumentFormat.OpenXml.Drawing.LineEndValues}
- endType System.Nullable{DocumentFormat.OpenXml.Drawing.LineEndValues}
- width System.Nullable{DocumentFormat.OpenXml.Drawing.LineEndWidthValues} = null
- length System.Nullable{DocumentFormat.OpenXml.Drawing.LineEndLengthValues} = null
public Void SetPositionCm(Double leftCm, Double topCm) #VoidSets position using centimeters.
Parameters
- leftCm System.Double
- topCm System.Double
public Void SetPositionInches(Double leftInches, Double topInches) #VoidSets position using inches.
Parameters
- leftInches System.Double
- topInches System.Double
public Void SetPositionPoints(Double leftPoints, Double topPoints) #VoidSets position using points.
Parameters
- leftPoints System.Double
- topPoints System.Double
public Void SetReflection(Double blurPoints = 4, Double distancePoints = 2, Double directionDegrees = 270, Double fadeDirectionDegrees = 90, Int32 startOpacityPercent = 50, Int32 endOpacityPercent = 0, Int32 startPositionPercent = 0, Int32 endPositionPercent = 100, Nullable<RectangleAlignmentValues> alignment = null, Boolean rotateWithShape = false) #VoidApplies a reflection effect to the shape.
Parameters
- blurPoints System.Double = 4
- distancePoints System.Double = 2
- directionDegrees System.Double = 270
- fadeDirectionDegrees System.Double = 90
- startOpacityPercent System.Int32 = 50
- endOpacityPercent System.Int32 = 0
- startPositionPercent System.Int32 = 0
- endPositionPercent System.Int32 = 100
- alignment System.Nullable{DocumentFormat.OpenXml.Drawing.RectangleAlignmentValues} = null
- rotateWithShape System.Boolean = false
public Void SetShadow(String color, Double blurPoints = 4, Double distancePoints = 3, Double angleDegrees = 45, Int32 transparencyPercent = 35, Boolean rotateWithShape = false) #VoidApplies a drop shadow to the shape.
Parameters
- color System.String
- blurPoints System.Double = 4
- distancePoints System.Double = 3
- angleDegrees System.Double = 45
- transparencyPercent System.Int32 = 35
- rotateWithShape System.Boolean = false
public Void SetSizeCm(Double widthCm, Double heightCm) #VoidSets size using centimeters.
Parameters
- widthCm System.Double
- heightCm System.Double
public Void SetSizeInches(Double widthInches, Double heightInches) #VoidSets size using inches.
Parameters
- widthInches System.Double
- heightInches System.Double
public Void SetSizePoints(Double widthPoints, Double heightPoints) #VoidSets size using points.
Parameters
- widthPoints System.Double
- heightPoints System.Double
public Void SetSoftEdges(Double radiusPoints) #VoidApplies a soft edges effect to the shape.
Parameters
- radiusPoints System.Double
Inherited Methods
public override Boolean Equals(Object obj) #BooleanParameters
- obj Object
Properties
public String FillColor { get; set; } #Gets or sets the fill color of the shape in hex format (e.g. "FF0000").
public Int64 Left { get; set; } #Horizontal position of the shape in EMUs.
public Double LeftPoints { get; set; } #Horizontal position of the shape in points.
public Double LeftCm { get; set; } #Horizontal position of the shape in centimeters.
public Double LeftInches { get; set; } #Horizontal position of the shape in inches.
public Int64 Top { get; set; } #Vertical position of the shape in EMUs.
public Double TopPoints { get; set; } #Vertical position of the shape in points.
public Double TopCm { get; set; } #Vertical position of the shape in centimeters.
public Double TopInches { get; set; } #Vertical position of the shape in inches.
public Int64 Width { get; set; } #Width of the shape in EMUs.
public Double WidthPoints { get; set; } #Width of the shape in points.
public Double WidthCm { get; set; } #Width of the shape in centimeters.
public Double WidthInches { get; set; } #Width of the shape in inches.
public Int64 Height { get; set; } #Height of the shape in EMUs.
public Double HeightPoints { get; set; } #Height of the shape in points.
public Double HeightCm { get; set; } #Height of the shape in centimeters.
public Double HeightInches { get; set; } #Height of the shape in inches.
public Int64 Right { get; set; } #Right position of the shape in EMUs.
public Double RightPoints { get; set; } #Right position of the shape in points.
public Double RightCm { get; set; } #Right position of the shape in centimeters.
public Double RightInches { get; set; } #Right position of the shape in inches.
public Int64 Bottom { get; set; } #Bottom position of the shape in EMUs.
public Double BottomPoints { get; set; } #Bottom position of the shape in points.
public Double BottomCm { get; set; } #Bottom position of the shape in centimeters.
public Double BottomInches { get; set; } #Bottom position of the shape in inches.
public Int64 CenterX { get; set; } #Horizontal center of the shape in EMUs.
public Double CenterXPoints { get; set; } #Horizontal center of the shape in points.
public Double CenterXCm { get; set; } #Horizontal center of the shape in centimeters.
public Double CenterXInches { get; set; } #Horizontal center of the shape in inches.
public Int64 CenterY { get; set; } #Vertical center of the shape in EMUs.
public Double CenterYPoints { get; set; } #Vertical center of the shape in points.
public Double CenterYCm { get; set; } #Vertical center of the shape in centimeters.
public Double CenterYInches { get; set; } #Vertical center of the shape in inches.
public PowerPointLayoutBox Bounds { get; set; } #Gets or sets the shape bounds in EMUs.
public String OutlineColor { get; set; } #Gets or sets the outline color for the shape in hex format (e.g. "FF0000").
public Nullable<Double> OutlineWidthPoints { get; set; } #Gets or sets the outline width in points.
public Nullable<PresetLineDashValues> OutlineDash { get; set; } #Gets or sets the outline dash preset.
public Nullable<Int32> FillTransparency { get; set; } #Gets or sets the fill transparency percentage (0-100). 0 = opaque, 100 = fully transparent.
public Nullable<Double> Rotation { get; set; } #Gets or sets rotation in degrees.
public Nullable<Boolean> HorizontalFlip { get; set; } #Gets or sets horizontal flip.
public Nullable<Boolean> VerticalFlip { get; set; } #Gets or sets vertical flip.