NGWS SDK Documentation  

This is preliminary documentation and subject to change.
To comment on this topic, please send us email at ngwssdk@microsoft.com. Thanks!

FormatControl Class

Implements customizable formatting of the Value property.

Object
   MarshalByRefObject
      MarshalByRefComponent
         Control
            RichControl
               FormatControl

[Visual Basic]
Public Class FormatControl
   Inherits RichControl
[C#]
public class FormatControl : RichControl
[C++]
public __gc class FormatControl : public RichControl
[JScript]
public class FormatControl extends RichControl

Remarks

This class extends RichControl and adds a Value property which represents an object value for the control. It also adds a Format property which controls how the Value gets converted to/from the standard Text display, as well as it's Font, BackColor, and FOreCOlor. This allows you to display negative numbers as red and within parentheses, for example.

Requirements

Namespace: System.WinForms

Assembly: System.WinForms.dll

See Also

FormatControl Members | System.WinForms Namespace