Compartir a través de


XPS_SEGMENT_TYPE enumeration

Describes a line segment.

Syntax

typedef enum  { 
  XPS_SEGMENT_TYPE_ARC_LARGE_CLOCKWISE         = 1,
  XPS_SEGMENT_TYPE_ARC_LARGE_COUNTERCLOCKWISE,
  XPS_SEGMENT_TYPE_ARC_SMALL_CLOCKWISE,
  XPS_SEGMENT_TYPE_ARC_SMALL_COUNTERCLOCKWISE,
  XPS_SEGMENT_TYPE_BEZIER,
  XPS_SEGMENT_TYPE_LINE,
  XPS_SEGMENT_TYPE_QUADRATIC_BEZIER
} XPS_SEGMENT_TYPE;

Constants

  • XPS_SEGMENT_TYPE_ARC_LARGE_CLOCKWISE
    The line segment is an arc that covers more than 180 degrees and is drawn in a clockwise direction from the start point to the end point.

  • XPS_SEGMENT_TYPE_ARC_LARGE_COUNTERCLOCKWISE
    The line segment is an arc that covers more than 180 degrees and is drawn in a counterclockwise direction from the start point to the end point.

  • XPS_SEGMENT_TYPE_ARC_SMALL_CLOCKWISE
    The line segment is an arc that covers at most 180 degrees and is drawn in a clockwise direction from the start point to the end point.

  • XPS_SEGMENT_TYPE_ARC_SMALL_COUNTERCLOCKWISE
    The line segment is an arc that covers at most 180 degrees and is drawn in a counterclockwise direction from the start point to the end point.

  • XPS_SEGMENT_TYPE_BEZIER
    The line segment is a cubic Bezier curve that is drawn between two points.

  • XPS_SEGMENT_TYPE_LINE
    The line segment is a straight line that is drawn between two points.

  • XPS_SEGMENT_TYPE_QUADRATIC_BEZIER
    The line segment is a quadratic Bezier curve that is drawn between two points.

Remarks

A geometry segment is described by the start point, the segment type, and additional parameters whose values are determined by the segment type. The coordinates for the start point of the first segment are a property of the geometry figure. The start point of each subsequent segment is the end point of the preceding segment.

The table that follows shows an example of each segment type.

Examples

XPS_SEGMENT_TYPE_ARC_LARGE_CLOCKWISE A diagram that shows an example of an XPS_SEGMENT_TYPE_ARC_LARGE_CLOCKWISE figure segment

XPS_SEGMENT_TYPE_ARC_LARGE_COUNTERCLOCKWISE A diagram that shows an example of an XPS_SEGMENT_TYPE_ARC_LARGE_CLOCKWISE figure segment

XPS_SEGMENT_TYPE_ARC_SMALL_CLOCKWISEA diagram that shows an example of an XPS_SEGMENT_TYPE_ARC_SMALL_CLOCKWISE figure segment

XPS_SEGMENT_TYPE_ARC_SMALL_COUNTERCLOCKWISE A diagram that shows an example of an XPS_SEGMENT_TYPE_ARC_SMALL_COUNTERCLOCKWISE figure segment

XPS_SEGMENT_TYPE_BEZIER A diagram that shows an example of an XPS_SEGMENT_TYPE_BEZIER figure segment

XPS_SEGMENT_TYPE_LINE A diagram that shows an example of an XPS_SEGMENT_TYPE_LINE figure segment

XPS_SEGMENT_TYPE_QUADRATIC_BEZIER A diagram that shows an example of an XPS_SEGMENT_TYPE_QUADRATIC_BEZIER figure segment

 

Requirements

Minimum supported client

Windows 7, Windows Vista with SP2 and Platform Update for Windows Vista [desktop apps | Windows Store apps]

Minimum supported server

Windows Server 2008 R2, Windows Server 2008 with SP2 and Platform Update for Windows Server 2008 [desktop apps | Windows Store apps]

Header

Xpsobjectmodel.h

IDL

XpsObjectModel.idl

See also

XML Paper Specification