CGXStyle::SetNegativeZeroFlag

CGXStyle& SetNegativeZeroFlag(BOOL bNegativeZeroFlag=TRUE);

bNegativeZeroFlag

Specifies whether the all-zero number being displayed is negative or positive.

Return Value

Returns the this pointer.

Remarks

Default value is TRUE. Set this value to FALSE to display a positive or non-negative all-zero value.

Example

SetStyleRange(CGXRange(nRow,nCol),
CGXStyle().SetValue("-0.00004").SetValueType(GX_VT_NUMERIC).SetFormat(GX_FMT_FIXED).SetNegativeZeroFlag(FALSE));

where nPrecision = 4 or SetPlaces(4)

See Also

 CGXStyle::SetFormat  CGXStyle::SetPlaces

CGXStyle

 Class Overview |  Class Members