SftTree/DLL 7.5 - Tree Control
SftBox/OCX 5.0 - Combo Box Control
SftButton/OCX 3.0 - Button Control
SftMask/OCX 7.0 - Masked Edit Control
SftTabs/OCX 6.5 - Tab Control (VB6 only)
SftTree/OCX 7.5 - Tree Control
SftPrintPreview/DLL 2.0 - Print Preview Control (discontinued)
SftTree/DLL 7.5 - Tree Control
SftBox/OCX 5.0 - Combo Box Control
SftButton/OCX 3.0 - Button Control
SftDirectory 3.5 - File/Folder Control (discontinued)
SftMask/OCX 7.0 - Masked Edit Control
SftOptions 1.0 - Registry/INI Control (discontinued)
SftPrintPreview/OCX 1.0 - Print Preview Control (discontinued)
SftTabs/OCX 6.5 - Tab Control (VB6 only)
SftTree/OCX 7.5 - Tree Control
SftTabs/NET 6.0 - Tab Control (discontinued)
SftTree/NET 2.0 - Tree Control
Returns the file/folder's attributes.
Get
VB.NET | Value = object.Attributes As Integer |
VB | Value = object.Attributes As Long |
C#.NET | int Value = object.Attributes; |
VC++ | long Value = object->Attributes; long Value = object->GetAttributes(); |
C | HRESULT object->get_Attributes(long* Value); |
object
A SftDirectoryFolder object.
Value
Returns the folder's attributes. These are obtained using the Windows Shell IShellFolder interface, GetAttributesOf function. Details about this function can be found in the Windows documentation. The following values are currently defined and can occur in any combination
Value♣ | Value | Description |
---|---|---|
SFGAO_BROWSABLE</span> | 0x08000000L | Can be browsed in place. |
SFGAO_CANCOPY | 1 | Can be copied (same value as the DROPEFFECT_COPY flag). |
SFGAO_CANDELETE | 0x00000020L | Can be deleted. |
SFGAO_CANLINK | 4 | Shortcuts can be created. |
SFGAO_CANMOVE | 2 | Can be moved. |
SFGAO_CANRENAME | 0x00000010L | Can be renamed. |
SFGAO_COMPRESSED | 0x04000000L | Compressed. |
SFGAO_DROPTARGET | 0x00000100L | Possible drop target. |
SFGAO_ENCRYPTED | 0x00002000L | Encrypted. |
SFGAO_FILESYSANCESTOR | 0x10000000L | The folder contains one or more file system folders. |
SFGAO_FILESYSTEM | 0x40000000L | The item is part of the file system (that is a file, directory or root directory). |
SFGAO_FOLDER | 0x20000000L | The item is a folder. |
SFGAO_GHOSTED | 0x00008000L | The item should be displayed using a ghosted icon. |
SFGAO_HASPROPSHEET | 0x00000040L | Has property sheets. |
SFGAO_HASSUBFOLDER | 0x80000000L | The folder may have subfolders and is potentially expandable. |
SFGAO_HIDDEN | 0x00080000L | Hidden item. |
SFGAO_ISSLOW | 0x00004000L | Accessing the object is a slow operation. |
SFGAO_LINK | 0x00010000L | Item is a shortcut. |
SFGAO_NEWCONTENT | 0x00200000L | Contains new content. |
SFGAO_READONLY | 0x00040000L | Read/only. |
SFGAO_REMOVABLE | 0x02000000L | On removable media. |
SFGAO_SHARE | 0x00020000L | Shared. |
SFGAO_STORAGE | 0x00000008L | The item can be bound to an IStorage interface through IShellFolder::BindToObject. |
SFGAO_STORAGEANCESTOR | 0x00800000L | Children of this item may be accessible through IStream or IStorage. |
SFGAO_STREAM | 0x00400000L | Indicates that the item has a stream associated with it that can be accessed by a call to IShellFolder::BindToObject. |
SFGAO_VALIDATE | 0x01000000L | Validate cached information. |
Note: The symbolic names (such as SFGAO_BROWSABLE) are not predefined and have to be defined explicitly by the application or the actual value must be used. C and C++ applications can find these symbols in ShObjIdl.h, which is part of Visual C++ or the Microsoft Platform SDK.
The Attributes property returns the file/folder's attributes.
The Attributes2 property returns additional file/folder attributes.
The IsFile, IsFolder and IsLink properties can be used to determine a file/folder's basic type. For additional information about the file/folder, the Attributes and Attributes2 properties can be used.
See Also SftDirectoryFolder Object | Object Hierarchy