SceneMarker Class
A drawing placed on the vertices of a path or a line, such as an arrowhead, as an SVG marker (ScenePath.MarkerStart, ScenePath.MarkerMid, ScenePath.MarkerEnd).
public sealed class SceneMarkerRemarks
The content is drawn at each vertex: its point (SceneMarker.RefX, SceneMarker.RefY) on the vertex, turned as SceneMarker.Orientation says, and scaled by the width of the stroke of the shape unless SceneMarker.Units is SceneMarkerUnits.UserSpace. It is not cut. A marker can be shared by several shapes. The content of a marker that is drawn on a shape of its own content is not drawn again, and its hyperlinks are not links.
Constructors
| Name | Description |
|---|---|
| SceneMarker() |
SceneMarker()
SceneMarker.cspublic SceneMarker()No documentation is available.
Properties
| Name | Description |
|---|---|
| Angle | Gets or sets the angle of the marker, in degrees, clockwise, when SceneMarker.Orientation is SceneMarkerOrientation.Angle. |
| Content | Gets the drawing of the marker, in its own coordinates. |
| Orientation | Gets or sets how the marker is turned: to the direction of the path (the default), the start marker turned back, or a fixed angle (SceneMarker.Angle). |
| RefX | Gets or sets the x coordinate of the point of the content placed on the vertex. |
| RefY | Gets or sets the y coordinate of the point of the content placed on the vertex. |
| Units | Gets or sets the units of the content. The default is SceneMarkerUnits.StrokeWidth, as in SVG. |
Angle
SceneMarker.csGets or sets the angle of the marker, in degrees, clockwise, when SceneMarker.Orientation is SceneMarkerOrientation.Angle.
public double Angle { get; set; }Property value
Content
SceneMarker.csGets the drawing of the marker, in its own coordinates.
public SceneGroup Content { get; }Property value
Orientation
SceneMarker.csGets or sets how the marker is turned: to the direction of the path (the default), the start marker turned back, or a fixed angle (SceneMarker.Angle).
public SceneMarkerOrientation Orientation { get; set; }Property value
RefX
SceneMarker.csRefY
SceneMarker.csUnits
SceneMarker.csGets or sets the units of the content. The default is SceneMarkerUnits.StrokeWidth, as in SVG.
public SceneMarkerUnits Units { get; set; }Property value
Methods
| Name | Description |
|---|---|
| GetTransform(PathPoint, double, bool) | Gets the transform that places the content of the marker on a vertex of a shape. |
GetTransform(PathPoint, double, bool)
SceneMarker.csGets the transform that places the content of the marker on a vertex of a shape.
public SceneTransform GetTransform(PathPoint vertex, double strokeWidth, bool isStart = false)Parameters
vertexPathPoint- The vertex, with the direction of the path there (
PathData.GetVertices). strokeWidthdouble- The width of the stroke of the shape, which scales the content when
SceneMarker.UnitsisSceneMarkerUnits.StrokeWidth. isStartbool- Whether the vertex is the first vertex of the shape, which
SceneMarkerOrientation.AutoStartReverseturns back.
Returns
SceneTransform The transform from the coordinates of the content to the coordinates of the shape.
Remarks
A direction or an angle that is not finite is 0.