- drawingContext
- The DrawingContext that defines the AnnButtonObject object to be drawn.
Visual Basic (Declaration) | |
---|---|
Protected Overridable Sub RenderObject( _ ByVal drawingContext As DrawingContext _ ) |
Visual Basic (Usage) | Copy Code |
---|---|
|
C# | |
---|---|
protected virtual void RenderObject( DrawingContext drawingContext ) |
C++/CLI | |
---|---|
protected: virtual void RenderObject( DrawingContext drawingContext ) |
Parameters
- drawingContext
- The DrawingContext that defines the AnnButtonObject object to be drawn.
This method is called internally by the annotation framework whenever the AnnObjectBase.OnRender method is called. You do not need to call this method directly.
If an object is invisible (Visibility property wasn't set to Visible), it will not draw itself.
By default, this method will draw the same geometry returned from the AnnObjectBase.DefiningGeometry property. For simple objects such as lines and rectangles, this is sufficient. More complex objects that contain elements that either cannot be expressed by a graphics path (such as images) or elements that are too expensive to be expressed by a path (such as text) override this method to draw the object directly.
Target Platforms: Microsoft .NET Framework 3.0, Windows XP, Windows Vista, and Windows Server 2003 family