Skip to main content

Search OfficeIMO

Enter a topic, API type, or PowerShell command.

Documentation Search all OfficeIMO/

API Reference

Class

OfficeClipPath

Namespace OfficeIMO.Drawing
Assembly OfficeIMO.Core
Modifiers sealed

Dependency-free clipping path descriptor in local top-left coordinates.

Inheritance

  • Object
  • OfficeClipPath

Usage

This type appears in these public API surfaces even when no hand-authored example is attached directly to the page.

Accepted by parameters

Methods

public OfficeClipPath Clone() #
Returns: OfficeClipPath

Creates a detached copy of this clipping path.

public static OfficeClipPath Empty() #
Returns: OfficeClipPath

Creates an empty clipping region.

Path 3 overloads
public static OfficeClipPath Path(params OfficePathCommand[] commands) #
Returns: OfficeClipPath

Creates a freeform clipping path from commands in local top-left coordinates.

Parameters

commands OfficeIMO.Drawing.OfficePathCommand[] requiredposition: 0
public static OfficeClipPath Path(IEnumerable<OfficePathCommand> commands) #
Returns: OfficeClipPath

Creates a freeform clipping path from commands in local top-left coordinates.

Parameters

commands System.Collections.Generic.IEnumerable{OfficeIMO.Drawing.OfficePathCommand} requiredposition: 0
public static OfficeClipPath Path(IEnumerable<OfficePathCommand> commands, OfficeFillRule fillRule) #
Returns: OfficeClipPath

Creates a freeform clipping path from commands in local top-left coordinates.

Parameters

commands System.Collections.Generic.IEnumerable{OfficeIMO.Drawing.OfficePathCommand} requiredposition: 0
fillRule OfficeIMO.Drawing.OfficeFillRule requiredposition: 1
public static OfficeClipPath Rectangle(Double width, Double height) #
Returns: OfficeClipPath

Creates a rectangular clipping path from the shape's local top-left corner.

Parameters

width System.Double requiredposition: 0
height System.Double requiredposition: 1
public static OfficeClipPath RoundedRectangle(Double width, Double height, Double cornerRadius) #
Returns: OfficeClipPath

Creates a rounded rectangular clipping path from the shape's local top-left corner.

Parameters

width System.Double requiredposition: 0
height System.Double requiredposition: 1
cornerRadius System.Double requiredposition: 2
public OfficeClipPath Scale(Double scaleX, Double scaleY) #
Returns: OfficeClipPath

Creates a scaled detached copy of this clipping path.

Parameters

scaleX System.Double requiredposition: 0
Horizontal scale factor.
scaleY System.Double requiredposition: 1
Vertical scale factor.

Returns

A new clipping path scaled in local coordinates.

Properties

public OfficeClipPathKind Kind { get; set; } #

Clip path type.

public Double Width { get; set; } #

Clip path width in the caller's layout unit.

public Double Height { get; set; } #

Clip path height in the caller's layout unit.

public Double CornerRadius { get; set; } #

Corner radius for rounded rectangle clipping paths.

public IReadOnlyList<OfficePathCommand> Commands { get; set; } #

Local commands for freeform clipping paths.

public OfficeFillRule FillRule { get; set; } #

Fill rule used when the clipping path contains multiple contours.