Hide

SftTree/OCX 7.5 - ActiveX Tree Control

Display
Print

ItemEditFont Property, SftTree Object

Defines the font used for cell editing.

Deprecated - Provided for compatibility with earlier versions only - See Cell Editing - This property continues to be used with Internet Explorer as it does not support the new cell editing mechanisms introduced with SftTree/OCX 5.0.

Syntax

Get

VB.NETrefFontObj = object.ItemEditFont As System.Drawing.Font
VBSet refFontObj = object.ItemEditFont As IFontDisp
C#.NETSystem.Drawing.Font refFontObj = object.ItemEditFont;
VC++IFontDisp* refFontObj = object->GetItemEditFont();
CHRESULT object->get_ItemEditFont(IFontDisp** refFontObj);

Put

VB.NETobject.let_ItemEditFont(ByVal refFontObj As System.Drawing.Font)
VBobject.ItemEditFont = refFontObj As IFontDisp
C#.NETvoid object.let_ItemEditFont(System.Drawing.Font refFontObj);
VC++void object->PutItemEditFont(IFontDisp* refFontObj);
CHRESULT object->put_ItemEditFont(IFontDisp* refFontObj);

PutRef

VB.NETobject.ItemEditFont = refFontObj As System.Drawing.Font
VBSet object.ItemEditFont = refFontObj As IFontDisp
C#.NETSystem.Drawing.Font object.ItemEditFont = refFontObj;
VC++void object->PutRefItemEditFont(IFontDisp* refFontObj);
CHRESULT object->putref_ItemEditFont(IFontDisp* refFontObj);

object

A SftTree object.

refFontObj

Defines the font used for cell editing. For information about font properties, please visit the applicable section "Using SftTree/OCX with ...".

Comments

Deprecated - Provided for compatibility with earlier versions only - See Cell Editing - This property continues to be used with Internet Explorer as it does not support the new cell editing mechanisms introduced with SftTree/OCX 5.0.

The ItemEditFont property defines the font used for cell editing.

The ItemEditFont property is used to change the font used for cell editing using edit controls and combo boxes. The font specified is used for the edit control and combo box when editing cells using the StartEdit, StartComboEdit and StartCombo methods. It is not used for cell editing started using the Cell.Edit method.

Depending on the CellEditStyle property, the controls used for cell editing can adjust to the font defined using the ItemEditFont property.

Using PutRef (see Syntax above) the control will use the reference to the Font object. If the Font object is later changed, this will also affect the font used by the control. Using Put instead causes the control to create a copy of the Font object. If the Font object is later changed, this will not affect the font used by the control as it uses a copy of the object. Because of the additional overhead and the increased resource use of Put, PutRef is the preferred method.

See Also SftTree Object | Object Hierarchy


Last Updated 08/13/2020 - (email)
© 2024 Softel vdm, Inc.