Click or drag to resize

SimpleVariable Methods

The SimpleVariable type exposes the following members.

Methods
 NameDescription
Public methodDisable Disables this variable from producing any output. When disabled, the Format method returns an empty string regardless of input values.
Public methodEnable Enables this variable for output (default condition when variable is created). When enabled, the variable resumes normal formatting and output behavior.
Public methodFormat Formats the specified numeric value and returns the formatted text string. The formatting applies the Format(Double) rules including decimal precision, sign display, zero padding, and prefix/suffix decoration.
Public methodGetCurrent Returns the formatted text string representation of the most recently formatted value. This allows inspecting the current formatted output without processing a new value.
Public methodIsEnable Gets a value indicating whether the variable is currently enabled for output.
Public methodReset Forces the output of the formatted text string on the next format call, overriding normal output rules. This ensures the next Format call produces output regardless of enable/disable state.
Public methodSetPrefix Temporarily overrides the prefix text string for subsequent output operations.
Public methodSetSuffix Temporarily overrides the suffix text string for subsequent output operations.
Top
See Also