Log In
Home
Support
Demos
Documentation
Blogs
Training
Webinars
[Expand]General Information
[Expand]WinForms Controls
[Collapse]ASP.NET Controls and MVC Extensions
 [Expand]Prerequisites
 [Expand]What's Installed
 [Expand]Common Concepts
 [Collapse]ASP.NET WebForms Controls
  [Expand]Reporting
  [Expand]Chart Control
  [Expand]Grid View
  [Expand]Card View
  [Expand]Vertical Grid
  [Expand]Spreadsheet
  [Expand]Rich Text Editor
  [Expand]Image and Data Browsing
  [Expand]Docking and Popups
  [Expand]Site Navigation and Layout
  [Expand]File Management
  [Expand]Multi-Use Site Controls
  [Expand]Scheduler
  [Expand]HTML Editor
  [Expand]Pivot Grid
  [Expand]Tree List
  [Collapse]Gauges
   [Expand]Product Information
   [Expand]Getting Started
   [Expand]Fundamentals
   [Collapse]Concepts
    [Collapse]Gauge Types
      Circular Gauges
      Linear Gauges
      Digital Gauges
      State Indicator Gauges
    [Expand]Gauge Elements
    [Expand]Appearance
     Data Binding
     Layout Customization
   [Expand]Visual Elements
   [Expand]Design-time Features
   [Expand]Examples
  [Expand]Data Editors
  [Expand]Spell Checker
  [Expand]Query Builder
 [Expand]ASP.NET MVC Extensions
 [Expand]Localization
 [Expand]Redistribution and Deployment
  Get More Help
 [Expand]API Reference
[Expand]ASP.NET Bootstrap Controls
[Expand]WPF Controls
[Expand]Xamarin Controls
[Expand]Windows 10 App Controls
[Expand]Document Server
[Expand]Reporting
[Expand]Report Server
[Expand]Dashboard
[Expand]eXpressApp Framework
[Expand]CodeRush
[Expand]Cross-Platform Core Libraries
[Expand]Tools and Utilities
 End-User Documentation

Linear Gauges

This document provides you with information on which Linear Gauge types exist in the ASPxGaugeControl component and explains how you can use these gauges in your application.

For details on other gauge types, refer to the corresponding topics of the Gauge Types section.

Expanded Linear Gauges Overview

Linear Gauge is a component that represents visual elements on a linear scale.

You can use this control in different applications for creating thermometers, indicators.

The ASPxGaugeControl provides Linear Gauges of two types: vertical and horizontal.

A full set of linear gauge shapes is available at design time in the gauge preset manager.

Expanded LinearGauge Class

Linear Gauge is represented by an instance of the LinearGauge class. This object can be accessed as an item of the GaugeCollectionWeb object returned by the ASPxGaugeControl.Gauges property of the ASPxGaugeControl object.

See the following code.

You can create a Linear Gauge control either at design time within Visual Studio or programmatically at runtime. The following example demonstrates how it can be done.

Expanded Linear Gauge Elements

This section describes linear gauge elements, as well as gives a brief overview of their properties.

A Linear Gauge allows you to add numerous elements, each of which is intended to perform a specific task.

The following image demonstrates a Linear Gauge containing a full set of elements.

A Scale is the main element of a linear gauge, as scales define the axis along which other elements (level bar, background layer, marker, etc.) are arranged. A linear gauge can have one or more scales displaying tickmarks and labels.

A scale within linear gauges is represented by the LinearScaleComponent class. It provides the following main display options:

The Level Bar indicates the current value by filling a bar along the scale's axis. Typically, there is only one level bar in a linear gauge, and it indicates the current value. The level bar must be associated with a particular scale. Once it has been associated with a scale, it automatically fills a bar along that scale, starting at the scale's minimum value and extending to the scale's current value.

A level bar is represented by the LinearScaleLevelComponent class. It provides the following main display options:

A Background Layer represents the background of a gauge. It is represented by the LinearScaleBackgroundLayerComponent class. This visual element provides the following main options:

For more information on gauge elements, see the Linear Gauge (Visual Elements) section.

Expanded See Also

How would you rate this topic?​​​​​​​