SftDirectory 2.5

SftDirectory.RenameStyle Property

Softel vdm, Inc.

Defines how files/folders can be renamed.

Syntax       

Get

VB.NET

Style = object.RenameStyle  As SftDirectoryRenameStyleConstants

VB

Style = object.RenameStyle  As SftDirectoryRenameStyleConstants

C#.NET

SftDirectoryRenameStyleConstants Style = object.RenameStyle;

VC++

enum SftDirectoryRenameStyleConstants Style = object->RenameStyle;
enum SftDirectoryRenameStyleConstants Style = object->GetRenameStyle();

C

HRESULT object->get_RenameStyle(enum SftDirectoryRenameStyleConstants* Style);

Delphi

Style := object.RenameStyle  : TOleEnum;

Put

VB.NET

object.RenameStyle = Style  As SftDirectoryRenameStyleConstants

VB

object.RenameStyle = Style  As SftDirectoryRenameStyleConstants

C#.NET

SftDirectoryRenameStyleConstants object.RenameStyle = Style;

VC++

enum SftDirectoryRenameStyleConstants object->RenameStyle = Style;
void object->PutRenameStyle(enum SftDirectoryRenameStyleConstants Style);

C

HRESULT object->put_RenameStyle(enum SftDirectoryRenameStyleConstants Style);

Delphi

object.RenameStyle := Style  : TOleEnum;

object

A SftDirectory object.

Defines how files/folders can be renamed.

Style

Value

Description

renameSftDirectoryNone

0

None - Files/folders cannot be renamed by the end-user.

renameSftDirectoryMenu

1

Menu Only - Files/folders can be renamed by the end-user by accessing a context menu's Rename command.  The ShowContextMenu property must be used to enable context menus or the ContextMenu method can be used to display the context menu.

renameSftDirectoryEdit

2

Edit Only - Files/folders can be renamed by the end-user by clicking on the file/folder name, which displays an edit control allowing modification of the name.

renameSftDirectoryAll

3

All - Both menu and edit methods are available to the end-user to rename files/folders.

Comments

The RenameStyle property defines how files/folders can be renamed.

The RenameStyle affects the end-users ability to rename files/folders using the context menu or by clicking on a file/folder name.  An application can always rename files/folders using the Folder.Do command or the Folder.Rename command.

Renaming files/folders is not possible with combo box style controls (see ControlStyle property) and the RenameStyle property has no effect.


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