Version

Graphics Class Members

The following tables list the members exposed by Graphics.

Public Constructors
 NameDescription
Public ConstructorGraphics ConstructorOverloaded.   
Public Properties
 NameDescription
Public PropertyAlternateFillGets or sets a boolean value that selects between non-zero winding number and even-odd filling rules.  
Public PropertyBrushGets or sets a Brush object that defines the color and texture for text strings and shapes.  
Public PropertyCharSpacingGets or sets a float value that defines the distance between characters in text strings.  
Public PropertyFontGets or sets a Font object that defines the format for text strings.  
Public PropertyFontMetricsGets a FontMetrics object that provides information regarding the text ascent, descent and height.  
Public PropertyHyperlinkPausedGets a value indicating whether a hyperlink has been paused.  
Public PropertyHyperlinkStartedGets a value indicating whether a hyperlink has been started.  
Public PropertyPenGets or sets a Pen object that defines the color, width and style for shape outlines.  
Public PropertyTextPositionGets or sets a Point object that defines X- and Y-coordinates of the text output.  
Public PropertyTransformationGets a Matrix object that defines the current transformation.  
Public Methods
 NameDescription
Public MethodAddHyperlinkAreaAdds a rectangular area to the hit region of the hyperlink.  
Public MethodClipArcClips an arc.  
Public MethodClipBeziersClips a series of cubic Bezier splines.  
Public MethodClipChordClips a chord.  
Public MethodClipClosedCurveClips a closed cardinal spline.  
Public MethodClipEllipseClips an ellipse.  
Public MethodClipPieClips a pie.  
Public MethodClipPolygonClips a polygon.  
Public MethodClipRectangleClips a rectangle.  
Public MethodClipRoundedRectClips a rounded rectangle.  
Public MethodClosePathCloses a path.  
Public MethodCurveToDraws a Bezier spline form the current point. A shape has to be started for this method to work.  
Public MethodDrawArcOverloaded. Draws an arc.  
Public MethodDrawBezierDraws a cubic Bezier spline.  
Public MethodDrawBeziersOverloaded. Draws a series of cubic Bezier splines.  
Public MethodDrawChordOverloaded. Draws a chord.  
Public MethodDrawClosedCurveOverloaded. Draws a closed cardinal spline.  
Public MethodDrawCurveDraws a cardinal spline.  
Public MethodDrawEllipseOverloaded. Draws an ellipse.  
Public MethodDrawImageOverloaded. Draws an image.  
Public MethodDrawLineDraws a line.  
Public MethodDrawLinesDraws a sequence of lines.  
Public MethodDrawPieOverloaded. Draws a pie.  
Public MethodDrawPolygonOverloaded. Draws a polygon.  
Public MethodDrawRectangleOverloaded. Draws a rectangle.  
Public MethodDrawRoundedRectOverloaded. Draws a rounded rectangle.  
Public MethodDrawSpacingDraws an invisible spacing. It is useful for underlined text and automatic hyperlink areas.  
Public MethodDrawStringOverloaded. Draws the specified text string at the current location.  
Public MethodEndHyperlinkStops the hyperlink.  
Public MethodEndShapeEnds current shape.  
Public MethodFillArcFills an arc.  
Public MethodFillBeziersFills a series of Bezier splines.  
Public MethodFillChordFills a chord.  
Public MethodFillClosedCurveFills a closed cardinal spline.  
Public MethodFillEllipseFills an ellipse.  
Public MethodFillPieFills a pie.  
Public MethodFillPolygonFills a polygon.  
Public MethodFillRectangleFills a rectangle.  
Public MethodFillRoundedRectFills a rounded rectangle.  
Public MethodFlushForces execution of all pending graphics operations.  
Public MethodGetCharWidthMeasures the specified character.  
Public MethodGetStringWidthMeasures the specified text string.  
Public MethodLineToDraws a line form the current point. A shape has to be started for this method to work.  
Public MethodMoveToEstablishes a new current point. A shape has to be started for this method to work.  
Public MethodPauseHyperlinkPauses the hyperlink.  
Public MethodRestoreClipRestores last clipping region from the stack.  
Public MethodRestoreStateRestores last graphics state from the stack.  
Public MethodResumeHyperlinkReactivates the hyperlink.  
Public MethodRotateApplies the specified rotation to the transformation matrix.  
Public MethodSaveClipSaves current clipping region to the stack and sets the new clipping region.  
Public MethodSaveStateSaves current graphics state to the stack.  
Public MethodScaleApplies the specified scaling operation to the transformation matrix.  
Public MethodShearApplies the specified shearing operation to the transformation matrix.  
Public MethodSkewApplies the specified skewing operation to the transformation matrix.  
Public MethodStartHyperlinkOverloaded. Starts a web link.  
Public MethodStartShapeOverloaded. Starts a shape.  
Public MethodTransformApplies new transformation.  
Public MethodTranslateChanges the origin of the coordinate system by prepending the specified translation to the transformation matrix.  
See Also

View on GitHub