OfficeClipPath
OfficeIMO.Drawing
Dependency-free clipping path descriptor in local top-left coordinates.
Inheritance
- object
- OfficeClipPath
Usage
Explore 14 API references to this type
This type appears in these public API surfaces even when no hand-authored example is attached directly to the page.
Returned or exposed by 8
- Method OfficeClipPath.Clone
- Method OfficeClipPath.Empty
- Method OfficeClipPath.Path
- Method OfficeClipPath.Rectangle
- Method OfficeClipPath.RoundedRectangle
- Method OfficeClipPath.Scale
- Property OfficeDrawingGroup.ClipPath
- Property OfficeShape.ClipPath
Accepted by parameters 6
Methods
public static OfficeClipPath Path(params OfficePathCommand[] commands) #Creates a freeform clipping path from commands in local top-left coordinates.
Parameters
- commands OfficeIMO.Drawing.OfficePathCommand[]
Returns
OfficeClipPathpublic static OfficeClipPath Path(IEnumerable<OfficePathCommand> commands) #Creates a freeform clipping path from commands in local top-left coordinates.
Parameters
- commands System.Collections.Generic.IEnumerable<OfficeIMO.Drawing.OfficePathCommand>
Returns
OfficeClipPathpublic static OfficeClipPath Path(IEnumerable<OfficePathCommand> commands, OfficeFillRule fillRule) #Creates a freeform clipping path from commands in local top-left coordinates.
Parameters
- commands System.Collections.Generic.IEnumerable<OfficeIMO.Drawing.OfficePathCommand>
- fillRule OfficeIMO.Drawing.OfficeFillRule
Returns
OfficeClipPathpublic static OfficeClipPath Path(double width, double height, IEnumerable<OfficePathCommand> commands, OfficeFillRule fillRule = EvenOdd) #Creates a clipping path while retaining its coordinates within a declared local canvas.
Parameters
- width double
- height double
- commands System.Collections.Generic.IEnumerable<OfficeIMO.Drawing.OfficePathCommand>
- fillRule OfficeIMO.Drawing.OfficeFillRule = EvenOdd
Returns
OfficeClipPathpublic static OfficeClipPath Rectangle(double width, double height) #Creates a rectangular clipping path from the shape's local top-left corner.
Parameters
- width double
- height double
Returns
OfficeClipPathpublic static OfficeClipPath RoundedRectangle(double width, double height, double cornerRadius) #Creates a rounded rectangular clipping path from the shape's local top-left corner.
Parameters
- width double
- height double
- cornerRadius double
Returns
OfficeClipPathpublic OfficeClipPath Scale(double scaleX, double scaleY) #Creates a scaled detached copy of this clipping path.
Parameters
- scaleX double
- Horizontal scale factor.
- scaleY double
- Vertical scale factor.
Inherited Methods
Properties
public double Width { get; private set; } #Clip path width in the caller's layout unit.
public double Height { get; private set; } #Clip path height in the caller's layout unit.
public double CornerRadius { get; private set; } #Corner radius for rounded rectangle clipping paths.
public IReadOnlyList<OfficePathCommand> Commands { get; private set; } #Local commands for freeform clipping paths.
public OfficeFillRule FillRule { get; private set; } #Fill rule used when the clipping path contains multiple contours.