Back to Devexpress

FormatConditionRule3ColorScale.MiddleType Property

windowsforms-devexpress-dot-xtraeditors-dot-formatconditionrule3colorscale-c89c4ee7.md

latest3.7 KB
Original Source

FormatConditionRule3ColorScale.MiddleType Property

Gets or sets the type of the midpoint of the target range.

Namespace : DevExpress.XtraEditors

Assembly : DevExpress.XtraEditors.v25.2.dll

NuGet Package : DevExpress.Win.Navigation

Declaration

csharp
[DefaultValue(FormatConditionValueType.Automatic)]
[DXCategory("Behavior")]
[XtraSerializableProperty]
public FormatConditionValueType MiddleType { get; set; }
vb
<XtraSerializableProperty>
<DefaultValue(FormatConditionValueType.Automatic)>
<DXCategory("Behavior")>
Public Property MiddleType As FormatConditionValueType

Property Value

TypeDefaultDescription
FormatConditionValueTypeAutomatic

The type of the midpoint of the target range.

|

Available values:

NameDescription
Number

Cell values are compared with zero.

| | Percent |

Cell values are compared with each other. The minimum cell value is treated as 0%, the maximum value is 100%.

| | Automatic |

A cuttoff/minimum/maximum value is calculated automatically.

|

Remarks

To specify the target range’s midpoint, use the FormatConditionRule3ColorScale.Middle property. The type of the midpoint is set by the MiddleType property.

If the MiddleType property is set to FormatConditionValueType.Number , the FormatConditionRule3ColorScale.Middle property’s value is regarded as a number. If you choose FormatConditionValueType.Percent , the FormatConditionRule3ColorScale.Middle property specifies the percentage of the difference between the highest and lowest column values. In the case of FormatConditionValueType.Automatic mode, the midpoint is automatically set to 50%, and the FormatConditionRule3ColorScale.Middle property is ignored.

See Also

Middle

FormatConditionRule3ColorScale Class

FormatConditionRule3ColorScale Members

DevExpress.XtraEditors Namespace