←Select platform

RenderLabel Method

Summary

Renders the specified label.

Syntax

C#
VB
Java
Objective-C
WinRT C#
C++
- (void)renderLabelMapper:(LTAnnContainerMapper *)mapper 
                    label:(LTAnnLabel *)label 
               operations:(LTAnnFixedStateOperations)operations 
             
public void renderLabel(AnnContainerMapper mapper, 
                        AnnLabel label, 
                        int annFixedStateOperations) 
             
 function Leadtools.Annotations.Rendering.AnnLabelRenderer.RenderLabel(  
   mapper , 
   label , 
   operations  
) 
public:  
   virtual void RenderLabel( 
      AnnContainerMapper^ mapper, 
      AnnLabel^ label, 
      AnnFixedStateOperations^ 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 operations are performed by this implementation:

  1. The values of the AnnLabel.OriginalPosition are converted to physical coordinates by calling mapper.AnnContainerMapper.PointFromContainerCoordinates.

  2. If the AnnLabel.RestrictionMode property is set to AnnLabelRestriction.RestrictToContainer, the size of the (AnnLabel.Text) label text is measured and clipped against the AnnRenderingEngine.ClipRectangle.

  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 for the text color and the AnnLabel.Background property for the brush to fill the background of area covered by the text.

Requirements

Target Platforms

Help Version 19.0.2017.10.27
Products | Support | Contact Us | Copyright Notices
© 1991-2017 LEAD Technologies, Inc. All Rights Reserved.

Leadtools.Annotations.Rendering.WinForms Assembly