SftDirectory 2.5

SftDirectoryFolder.SetText Method

Softel vdm, Inc.

Defines the file/folder's text.

Syntax       

VB.NET

object.SetText(ByVal ColumnContents As SftDirectoryContentsConstants, ByVal String As String)

VB

object.SetText(ByVal ColumnContents As SftDirectoryContentsConstants, ByVal String As String)

C#.NET

void object.SetText(SftDirectoryContentsConstants ColumnContents, string String);

VC++

HRESULT object->SetText(enum SftDirectoryContentsConstants ColumnContents, _bstr_t String);

C

HRESULT object->raw_SetText(enum SftDirectoryContentsConstants ColumnContents, BSTR String);

Delphi

procedure object.SetText(ColumnContents : TOleEnum, String : WideString);

object

A SftDirectoryFolder object.

ColumnContents

Defines the column contents for which the text should be set.

ColumnContents

Value

Description

contentsSftDirectoryName

0

Name - Simple folder name.

contentsSftDirectorySize

1

Size - The file size, if available.

contentsSftDirectoryType

2

Type - The type of the folder as defined by the Windows Shell, if available.

contentsSftDirectoryDateMod

3

Date Modified - The date the folder was last modified, if available.  

contentsSftDirectoryDateCre

4

Date Created - The date the folder was last modified, if available.  The DateCreated property also returns the date and time the folder was created.

contentsSftDirectoryDateAcc

5

Date Accessed - The date the folder was last accessed, if available.  The DateAccessed property also returns the date and time the folder was last accessed.

contentsSftDirectoryAttributes

6

Attributes - The attributes of the folder:  'A' - Folders ready to be archived, 'H' - hidden, 'C' - compressed, 'E' - encrypted folders. The Attributes property also returns the folder's attributes.

contentsSftDirectoryUser1

51

User defined 1 - User-defined contents are added while the control's contents are added using the UserContents event.

contentsSftDirectoryUser2

52

User defined 2.

contentsSftDirectoryUser3

53

User defined 3.

contentsSftDirectoryUser4

54

User defined 4.

contentsSftDirectoryUser5

55

User defined 5.

contentsSftDirectoryUser6

56

User defined 6.

contentsSftDirectoryUser7

57

User defined 7.

contentsSftDirectoryUser8

58

User defined 8.

contentsSftDirectoryUser9

59

User defined 9.

String

Defines the folder's text.

Comments

The SetText method defines the file/folder's text.

The text can only be updated if a column with the specified contents has been defined.  Only the control contents are modified for display purposes. The actual folder is not modified.


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