Leadtools.Windows.Annotations Requires Document/Medical license. | Send comments on this topic. | Back to Introduction - All Topics | Help Version 16.5.9.25
RenderHeader Method
See Also 
Leadtools.Windows.Annotations Namespace > AnnObjectBase Class : RenderHeader Method



drawingContext
The DrawingContext that defines the AnnButtonObject header to be drawn.
drawingContext
The DrawingContext that defines the AnnButtonObject header to be drawn.
Draws this AnnObjectBase header on the specified drawing context.

Syntax

Visual Basic (Declaration) 
Protected Overridable Sub RenderHeader( _
   ByVal drawingContext As DrawingContext _
) 
Visual Basic (Usage)Copy Code
Dim instance As AnnObjectBase
Dim drawingContext As DrawingContext
 
instance.RenderHeader(drawingContext)
C# 
protected virtual void RenderHeader( 
   DrawingContext drawingContext
)
C++/CLI 
protected:
virtual void RenderHeader( 
   DrawingContext drawingContext
) 

Parameters

drawingContext
The DrawingContext that defines the AnnButtonObject header to be drawn.

Remarks

This method is called internally by the annotation framework whenever the AnnObjectBase.OnRender method is called. There is no need to call this method directly.

If the IsHeaderVisible property is set to false, this method will not be called.

By default, this method will draw the Header text using the HeaderFontFamily, HeaderFontStyle, HeaderFontWeight, HeaderFontStretch, HeaderFontSize with the HeaderForeground as the text brush and HeaderBackground as a brush fill the bounding rectangle of the header text.

Requirements

Target Platforms: Microsoft .NET Framework 3.0, Windows XP, Windows Vista, and Windows Server 2003 family

See Also

RenderHeader requires a Document/Medical product license and unlock key. For more information, refer to: Imaging Pro/Document/Medical Features and Unlocking Special LEAD Features.