Class DocumentUtils

Class DocumentUtils

Namespace: Aspose.Page.XPS
Assembly: Aspose.Page.dll (25.1.2)

This class provides utilities beyond the formal XPS manipulation API.

public class DocumentUtils

Inheritance

objectDocumentUtils

Inherited Members

object.GetType(), object.MemberwiseClone(), object.ToString(), object.Equals(object?), object.Equals(object?, object?), object.ReferenceEquals(object?, object?), object.GetHashCode()

Methods

CreateCircle(PointF, float)

Creates a path geometry representing a circle.

public XpsPathGeometry CreateCircle(PointF center, float radius)

Parameters

center PointF

The center point of the circle.

radius float

The radius of the circle.

Returns

XpsPathGeometry

The XPS path geometry.

CreateCircularSegment(PointF, float, float, float)

Creates a path geometry representing a circular segment between two angles.

public XpsPathGeometry CreateCircularSegment(PointF center, float radius, float startAngle, float endAngle)

Parameters

center PointF

The center of the circle.

radius float

The radius of the circle.

startAngle float

The starting angle.

endAngle float

The ending angle.

Returns

XpsPathGeometry

The XPS path geometry.

CreateEllipse(PointF, float, float)

Creates a path geometry representing an ellipse.

public XpsPathGeometry CreateEllipse(PointF center, float radiusX, float radiusY)

Parameters

center PointF

The center point of the ellipse.

radiusX float

The horizontal radius of the ellipse.

radiusY float

The vertical radius of the ellipse.

Returns

XpsPathGeometry

The XPS path geometry.

CreateImage(string, RectangleF, ImageMode)

Creates a rectangular path filled with an image.

public XpsPath CreateImage(string fileName, RectangleF imageBox, ImageMode mode = ImageMode.FitToBox)

Parameters

fileName string

The name of the image file.

imageBox RectangleF

The image box to fill with the image.

mode ImageMode

Image fit mode.

Returns

XpsPath

The XPS path.

CreatePieSlice(PointF, float, float, float)

Creates a path geometry representing a circle slice between two radial rays.

public XpsPathGeometry CreatePieSlice(PointF center, float radius, float startAngle, float endAngle)

Parameters

center PointF

The center of the circle.

radius float

The radius of the circle.

startAngle float

The angle of the starting ray.

endAngle float

The angle of the ending ray.

Returns

XpsPathGeometry

The XPS path geometry.

CreateRectangle(RectangleF)

Creates a path geometry representing a rectangle.

public XpsPathGeometry CreateRectangle(RectangleF rectangle)

Parameters

rectangle RectangleF

The rectangle.

Returns

XpsPathGeometry

The XPS path geometry.

CreateRegularCircumscribedNGon(int, PointF, float)

Creates a path geometry representing a regular n-gon circumscribed around a circle.

public XpsPathGeometry CreateRegularCircumscribedNGon(int n, PointF center, float radius)

Parameters

n int

The number of vertices.

center PointF

The center of the circle.

radius float

The radius of the circle.

Returns

XpsPathGeometry

The XPS path geometry.

CreateRegularInscribedNGon(int, PointF, float)

Creates a path geometry representing a regular n-gon inscribed in a circle.

public XpsPathGeometry CreateRegularInscribedNGon(int n, PointF center, float radius)

Parameters

n int

The number of vertices.

center PointF

The center of the circle.

radius float

The radius of the circle.

Returns

XpsPathGeometry

The XPS path geometry.

 English