CellsManager.CellGetLogFont method |
|
Remarks Obtains the font settings for the text of the cell identified by the UniqueID identifier. The current font settings can be changed using the CellsManager.CellSetLogFont method. For further details about cells management, see the How to manage cells section
Syntax
[Visual Basic] Public Function CellsManager.CellGetLogFont(UniqueID as Short, lf as Ctl3DWrapper.LOGFONT) as Boolean
[C#] public bool CellsManager.CellGetLogFont(short UniqueID, Ctl3DWrapper.LOGFONT lf);
[C++] public: bool CellsManager.CellGetLogFont(short UniqueID, Ctl3DWrapper.LOGFONT lf);
Return value
Visual Basic example
' obtain the current font settings Dim lf As New Ctl3DWrapper.LOGFONT ctl3dBtn1.CellsManager.CellGetLogFont (1000, lf)
' change the needed fields only lf.lfFaceName = "Courier New"; lf.lfItalic = 1; lf.lfHeight = 16; lf.lfWeight = 700;
' send the new font settings to the control ctl3dBtn1.CellsManager.CellSetLogFont (1000, lf) With this code the font used to render the text of cell with UniqueID 1000 will be changed into Courier new, Italic, Bold and 16 points.
Visual C# example
// obtain the current font settings Ctl3DWrapper.LOGFONT lf = new Ctl3DWrapper.LOGFONT (); ctl3dBtn1.CellsManager.CellGetLogFont (1000, lf);
// change the needed fields only lf.lfFaceName = "Courier New"; lf.lfItalic = 1; lf.lfHeight = 16; lf.lfWeight = 700;
// send the new font settings to the control ctl3dBtn1.CellsManager.CellSetLogFont (1000, lf);
With this code the font used to render the text of cell with UniqueID 1000 will be changed into Courier new, Italic, Bold and 16 points.
|