SymbolLength.FixedLength Property
Provides access to the width and height of symbols that are set in absolute values.
Namespace: DevExpress.Xpf.Gauges
Assembly: DevExpress.Xpf.Gauges.v18.2.dll
Declaration
Property Value
Type | Description |
---|---|
Double | A double value that is the symbol length specified in absolute value. |
Example
This example demonstrates how to specify the width and height of digital gauge symbols in fixed and proportional values.
For this, it is necessary to create an instance of the SymbolLength structure with required values and then assign it to the SymbolViewBase.Height and SymbolViewBase.Width properties.
In this example, the symbol length can be set either in fixed or proportional values depending on which of the buttons has been clicked.
Note
A complete sample project is available at https://github.com/DevExpress-Examples/how-to-set-the-width-and-height-of-symbols-in-the-digital-gauge-control-e3736.
// Specify fixed values for symbol height and width.
SymbolLength newWidth = new SymbolLength(SymbolLengthType.Fixed, 44);
matrixView.Width = newWidth;
SymbolLength newHeight = new SymbolLength(SymbolLengthType.Fixed, 50);
matrixView.Height = newHeight;
// Specify proportional values for symbol height and width.
SymbolLength newWidth = new SymbolLength(SymbolLengthType.Proportional, 2);
matrixView.Width = newWidth;
SymbolLength newHeight = new SymbolLength(SymbolLengthType.Proportional, 5);
matrixView.Height = newHeight;