Products | Support | Email a link to this topic. | Send comments on this topic. | Back to Introduction - All Topics | Help Version 19.0.6.22
|
Leadtools.Annotations.Rendering Namespace > AnnLabelRenderer Class : RenderLabel Method |
public virtual void RenderLabel( AnnContainerMapper mapper, AnnLabel label, AnnFixedStateOperations operations )
'Declaration
Public Overridable Sub RenderLabel( _ ByVal mapper As AnnContainerMapper, _ ByVal label As AnnLabel, _ ByVal operations As AnnFixedStateOperations _ )
'Usage
Dim instance As AnnLabelRenderer Dim mapper As AnnContainerMapper Dim label As AnnLabel Dim operations As AnnFixedStateOperations instance.RenderLabel(mapper, label, operations)
public virtual void RenderLabel( AnnContainerMapper mapper, AnnLabel label, AnnFixedStateOperations operations )
- (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 )
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:
The values of the AnnLabel.OriginalPosition are converted to physical coordinates by calling mapper.AnnContainerMapper.PointFromContainerCoordinates.
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.
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.