DocumentUtils class

DocumentUtils class

This class provides utilities beyond the formal XPS manipulation API.

The DocumentUtils type exposes the following members:

Methods

NameDescription
create_rectangle(rectangle)Creates a path geometry representing a rectangle.
create_ellipse(center, radius_x, radius_y)Creates a path geometry representing an ellipse.
create_circle(center, radius)Creates a path geometry representing a circle.
create_regular_inscribed_n_gon(n, center, radius)Creates a path geometry representing a regular n-gon inscribed in a circle.
create_regular_circumscribed_n_gon(n, center, radius)Creates a path geometry representing a regular n-gon circumscribed around a circle.
create_pie_slice(center, radius, start_angle, end_angle)Creates a path geometry representing a circle slice between two radial rays.
create_circular_segment(center, radius, start_angle, end_angle)Creates a path geometry representing a circular segment between two angles.
create_image(file_name, image_box, mode)Creates a rectangular path filled with an image.

See Also