menu

WinForms

  • Code Examples
  • Upgrade Guide
  • User Guide
  • Demos
  • Support
  • Forums
  • Download
Class SixteenSegmentHelper - WindowsForms API Reference | Syncfusion

    Show / Hide Table of Contents

    Class SixteenSegmentHelper

    Helper class for the SixteenSegment Display

    Inheritance
    System.Object
    SixteenSegmentHelper
    Inherited Members
    System.Object.Equals(System.Object)
    System.Object.Equals(System.Object, System.Object)
    System.Object.GetHashCode()
    System.Object.GetType()
    System.Object.MemberwiseClone()
    System.Object.ReferenceEquals(System.Object, System.Object)
    System.Object.ToString()
    Namespace: Syncfusion.Windows.Forms.Gauge
    Assembly: Syncfusion.Gauge.Windows.dll
    Syntax
    public class SixteenSegmentHelper

    Constructors

    SixteenSegmentHelper(Graphics, DigitalGauge)

    Initiates a new instance for the SixteenSegmentHelper class

    Declaration
    public SixteenSegmentHelper(Graphics graphics, DigitalGauge gauge)
    Parameters
    Type Name Description
    System.Drawing.Graphics graphics

    graphics of the control

    DigitalGauge gauge

    owner control [Gauge]

    Methods

    DrawDigits(String, Font, Brush, Brush, Single, Single)

    Used to draw the input text.

    Declaration
    public void DrawDigits(string text, Font font, Brush brush, Brush brushLight, float x, float y)
    Parameters
    Type Name Description
    System.String text

    input text

    System.Drawing.Font font

    font

    System.Drawing.Brush brush

    brush to paint the active segments

    System.Drawing.Brush brushLight

    brush to paint the inactive segments

    System.Single x

    x location of the text to draw

    System.Single y

    y location of the text to draw

    GetStringSize(String, Font)

    Measures and returns the size of the given text size.

    Declaration
    public SizeF GetStringSize(string text, Font font)
    Parameters
    Type Name Description
    System.String text

    string to measure

    System.Drawing.Font font

    specified font to measure the string

    Returns
    Type Description
    System.Drawing.SizeF

    SizeF

    Back to top Generated by DocFX
    Copyright © 2001 - 2025 Syncfusion Inc. All Rights Reserved