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 : AnnD2DTextStrikeoutObjectRenderer Class |
public class AnnD2DTextStrikeoutObjectRenderer : AnnD2DTextReviewObjectRenderer, Leadtools.Annotations.Core.IAnnObjectRenderer
'Declaration
Public Class AnnD2DTextStrikeoutObjectRenderer Inherits AnnD2DTextReviewObjectRenderer Implements Leadtools.Annotations.Core.IAnnObjectRenderer
'Usage
Dim instance As AnnD2DTextStrikeoutObjectRenderer
public sealed class AnnD2DTextStrikeoutObjectRenderer : Leadtools.Annotations.Core.IAnnObjectRenderer
function Leadtools.Annotations.Rendering.AnnD2DTextStrikeoutObjectRenderer()
AnnD2DTextStrikeoutObjectRenderer is the default renderer for the following objects:
AnnRenderingEngine creates a new instance of this class and stores it in the AnnRenderingEngine.Renderers dictionary for each of the listed object ids.
This renderer overrides RenderShape to render a thick horizontal line near the center of each rectangle in GetRectangles as follows:
This thick line is really a rectangle that has a width equal to the rectangle width.
The height of the line is calculated from multiplying the height of the rectangle by the value of Thickness (0.15 by default which result in a line thickness equal to 15 percent of the rectangle height).
The position the line centered vertically at Position percentage value of the rectangle height (the default value of Position is 0.85 which results in the line centered vertically at 85 percent of the height).
This thick line is then rendered as a filled rectangle using Fill.