←Select platform

DrawGauge Method

Summary

Draws the gauge portion of the ruler.

Syntax
C#
VB
Objective-C
C++
Java
Protected Overridable Sub DrawGauge( _ 
   ByVal mapper As AnnContainerMapper, _ 
   ByVal startPoint As LeadPointD, _ 
   ByVal endPoint As LeadPointD, _ 
   ByVal gaugeLength As LeadLengthD, _ 
   ByVal stroke As AnnStroke, _ 
   ByVal operations As AnnFixedStateOperations _ 
)  
- (void)drawGaugeMapper:(LTAnnContainerMapper *)mapper 
                  start:(LeadPointD)startPoint 
                    end:(LeadPointD)endPoint 
            gaugeLength:(double)gaugeLength 
                 stroke:(LTAnnStroke *)stroke 
             operations:(LTAnnFixedStateOperations)operations 
protected void drawGauge(AnnContainerMapper mapper,  
                         LeadPointD startPoint,  
                         LeadPointD endPoint,  
                         LeadLengthD gaugeLength,  
                         AnnStroke stroke,  
                         int annFixedStateOperations) 

Parameters

mapper
The mapper to use for rendering.

startPoint
The first (starting) point of the ruler.

endPoint
The second (stopping) point of the ruler.

gaugeLength
The length of the gauge.

stroke
The stroke to use when drawing the ruler.

operations
The fixed state of the owner object.

Remarks

This method is called by the renderer to draw the gauge of the ruler. Derived classes can override this method to provide their own implementation.

Requirements

Target Platforms

Help Version 20.0.2020.3.31
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2020 LEAD Technologies, Inc. All Rights Reserved.

Leadtools.Annotations.Rendering.WinForms Assembly