Hide

SftDirectory 3.5 - ActiveX File/Folder Control

Display
Print

SftDirectory.Font Property

Defines the default text font.

Syntax

Get

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

Put

VB.NETobject.let_Font(ByVal refFontObj As System.Drawing.Font)
VBobject.Font = refFontObj As IFontDisp
C#.NETvoid object.let_Font(System.Drawing.Font refFontObj);
VC++void object->PutFont(IFontDisp* refFontObj);
CHRESULT object->put_Font(IFontDisp* refFontObj);

PutRef

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

object

A SftDirectory object.

refFontObj

Defines the default text font.

Comments

The Font property defines the default text font.

All files/folders use the defined font. Individual files/folders can override the font using the Folder.Font property.

Examples

VB.NET

Dim NewFont As New Font("Times New Roman", 12, FontStyle.Regular)
AxSftDirectory1.Font = NewFont

VB6

SftDirectory1.Font.Name = "Times New Roman"
SftDirectory1.Font.Size = 12

C#

Font newFont = new Font("Times New Roman", 12, FontStyle.Regular);
axSftDirectory1.Font = newFont;

C++

ISftDirectoryPtr vDir1 = m_Dir1.GetControlUnknown();
IFontDispPtr pFontDisp = vDir1->GetFont();
IFontPtr pFont = pFontDisp;
pFont->put_Name(L"Times New Roman");
CY sz;
sz.int64 = 10000L*12;
pFont->put_Size(sz);

See Also SftDirectory Object | Object Hierarchy


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