CGpGraphicsPath.ClearMarkersmethod
Clears the markers from this path.
Syntax
FUNCTION ClearMarkers () AS GpStatus
Return value
If the function succeeds, it returns StatusOk, which is an element of the GpStatus enumeration.
If the function fails, it returns one of the other elements of the GpStatus enumeration.
Description
Clears the markers from this path.
Example
' ======================================================================================== ' This example sets a marker in a path and then clears it using GdipClearPathMarkers. ' ======================================================================================== SUB Example_ClearMarkers (BYVAL hdc AS HDC)
' // Create a graphics object from the window device context DIM graphics AS CGpGraphics = hdc ' // Set the scale transform graphics.ScaleTransformForDpi
' // Create graphics path DIM path AS CGpGraphicsPath path.AddRectangle(50, 50, 100, 60) path.SetMarker ' Set a marker after the rectangle path.AddEllipse(200, 50, 100, 60)
' // Clear all markers path.ClearMarkers()
' // Create pen (UnitWorld to match path coordinates) DIM pen AS CGpPen = CGpPen(ARGB_DARKBLUE, 2.0)
' Draw the path graphics.DrawPath(@pen, @path)
END SUB ' ========================================================================================
Reference
- Include file
CGpPath.inc - Defined in AfxNova/CGpPath.inc:138
- Documented in Graphics/GdiPlus Classes/CGpGraphics Classes.md
- Topic: CGpGraphics Class