public virtual void RenderLabel( AnnContainerMapper mapper, AnnLabel label, AnnFixedStateOperations 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 is performed by this implementation:
The values of AnnLabel.OriginalPosition is converted to physical coordinates by using mapper.AnnContainerMapper.PointFromContainerCoordinates
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
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.