![]() |
Font
![Base Classes](basepub.gif)
![Data Items](datapub.gif)
![Constructors](cstrpub.gif)
![Destructors](destpub.gif)
![Functions](funcpub.gif)
![Go to hierarchy chart](_chart0.gif)
![Prev page: Enabled](left.gif)
![Next page: ImmediateUpdates](right.gif)
Public Data Item |
Declared in: NiButton.h |
Declaration
CNiFont Font;
Description
Specifies the font for the caption and the two text fields in the button.
Note that you must initialize a CNiFont object from an existing object. For example:
CNiFont font = button.Font; font.Name = "Courier"; font.Size = 12;
If you do not initialize a CNiFont object from an existing object, a CNiObjectNotInUsableState exception will be thrown when you attempt to manipulate the instance of the CNiFont. For example:
CNiFont font;// This will throw a CNiObjectNotInUsableState exception because // the CNiFont object was not initialized from an existing object. font.Name = "Courier";