Table of Contents

Enum PropertyDescriptionFormatOptions

Namespace
Microsoft.WindowsAPICodePack.Shell.PropertySystem
Assembly
Microsoft.WindowsAPICodePack.Shell.dll

Delineates the format of a property string.

[Flags]
public enum PropertyDescriptionFormatOptions

Fields

AlwaysKB = 4

The sizes displayed in kilobytes (KB), regardless of size.

FileName = 2

The string treated as a file name.

HideDate = 512

The date portion of date/time hidden.

HideTime = 64

The time portion of date/time hidden.

LongDate = 256

The date displayed as 'DayOfWeek Month day, year'. For example, 'Monday, March 21, 2004'.

LongTime = 32

The time displayed as 'hh:mm:ss am/pm'.

NoAutoReadingOrder = 8192

The detection of the reading order is not automatic. Useful when converting to ANSI to omit the Unicode reading order characters.

None = 0

The format settings specified in the property's .propdesc file.

PrefixName = 1

The value preceded with the property's display name.

ReadOnly = 4096

This flag requires UseEditInvitation to also be specified. When the formatting flags are ReadOnly | UseEditInvitation and the algorithm would have shown invitation text, a string is returned that indicates the value is "Unknown" instead of the invitation text.

RelativeDate = 1024

The friendly date descriptions, such as "Yesterday".

RightToLeft = 8

Reserved.

ShortDate = 128

The date displayed as 'MM/DD/YY'. For example, '3/21/04'.

ShortTime = 16

The time displayed as 'hh:mm am/pm'.

SmartDateTime = 16384

Smart display of DateTime values

UseEditInvitation = 2048

The text displayed in a text box as a cue for the user, such as 'Enter your name'.

Remarks

Typically use one, or a bitwise combination of these flags, to specify the format. Some flags are mutually exclusive, so combinations like ShortTime | LongTime | HideTime are not allowed.