LEADTOOLS WinRT (Leadtools.Annotations.Rendering)
LEAD Technologies, Inc

RenderLabel Method


The mapper object to use for converting coordinates. Must not be null.
The label to render. Must not be null.
The fixed state of the owner object.
Renders the specified label. WinRT support
Syntax
public virtual void RenderLabel( 
   AnnContainerMapper mapper,
   AnnLabel label,
   AnnFixedStateOperations operations
)
 function Leadtools.Annotations.Rendering.AnnLabelRenderer.RenderLabel( 
   mapper ,
   label ,
   operations 
)

Parameters

mapper
The mapper object to use for converting coordinates. Must not be null.
label
The label to render. Must not be null.
operations
The fixed state of the owner object.
Remarks

This is the label renderer implementation for this platform. For more information, refer to IAnnLabelRenderer.RenderLabel.

This method is called by the framework to render the text labels of an annotation object. The following is performed by this implementation:

  1. The values of AnnLabel.OriginalPosition is converted to physical coordinates by using mapper.AnnContainerMapper.PointFromContainerCoordinates

  2. The size of the (AnnLabel.Text) label text is measured and clipped against the AnnRenderingEngine.ClipRectangle if the value of the AnnLabel.IsRestricted property was set to true

  3. Finally, the text label is rendered into the AnnRenderingEngine.Context property using the values of the AnnLabel.Font property for the text font style and size, the AnnLabel.Foreground property as the text color and the AnnLabel.Background property as the brush to fill the background of area covered by the text.

Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

Reference

AnnLabelRenderer Class
AnnLabelRenderer Members

 

 


Products | Support | Contact Us | Copyright Notices

© 2006-2012 All Rights Reserved. LEAD Technologies, Inc.