SftTree/OCX 7.0

SftTreeCell.Font Property

Softel vdm, Inc.

Defines the font used for this cell.

Syntax       

Get

VB.NET

refFontObj = object.Font  As stdole.IFontDispLanguage-specific information

VB

Set refFontObj = object.Font  As IFontDisp

C#.NET

stdole.IFontDispLanguage-specific information refFontObj = object.Font;

VC++

IFontDisp* refFontObj = object->GetFont();

C

HRESULT object->get_Font(IFontDisp** refFontObj);

Delphi

refFontObj := object.Font  : IFontDisp;

Put

VB.NET

object.let_Font(ByVal refFontObj As stdole.IFontDispLanguage-specific information)

VB

object.Font = refFontObj  As IFontDisp

C#.NET

void object.let_Font(stdole.IFontDispLanguage-specific information refFontObj);

VC++

void object->PutFont(IFontDisp* refFontObj);

C

HRESULT object->put_Font(IFontDisp* refFontObj);

Delphi

procedure object._Set_Font(refFontObj : IFontDisp);

PutRef

VB.NET

object.Font = refFontObj  As stdole.IFontDispLanguage-specific information

VB

Set object.Font = refFontObj  As IFontDisp

C#.NET

stdole.IFontDispLanguage-specific information object.Font = refFontObj;

VC++

void object->PutRefFont(IFontDisp* refFontObj);

C

HRESULT object->putref_Font(IFontDisp* refFontObj);

Delphi

object.Font := refFontObj  : IFontDisp;

object

A SftTreeCell object.

refFontObj

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

Comments

The Font property defines the font used for this cell.

The Font property overrides the control's Font property for the specified cell.  If the Font property is not set for a particular cell, the control's Font property is used to draw the cell text instead.  The cell's Font property can be set to the value Nothing, which restores the tree control's default font, defined using the control's Font property.

When using fixed height items (see Items.Style) and the Font property describes a font that is larger than the control's Font property, cell text will be clipped vertically.  Items do not adjust their height to the Font property.  Cell text is centered vertically and horizontally based on the Cell.TextVAlign and Cell.TextHAlign properties.

See Also  SftTreeCell Object | Object Hierarchy


Feedback / comments / error reports for this topic
© 2015 - Softel vdm, Inc. - www.softelvdm.com