Dela via


DisplayMetadata Class

Definition

Display metadata details for a ModelMetadata.

public ref class DisplayMetadata
public class DisplayMetadata
type DisplayMetadata = class
Public Class DisplayMetadata
Inheritance
DisplayMetadata

Constructors

DisplayMetadata()

Properties

AdditionalValues

Gets a set of additional values. See AdditionalValues

ConvertEmptyStringToNull

Gets or sets a value indicating whether or not to convert an empty string value or one containing only whitespace characters to null when representing a model as text. See ConvertEmptyStringToNull

DataTypeName

Gets or sets the name of the data type. See DataTypeName

Description

Gets or sets a delegate which is used to get a value for the model description. See Description.

DisplayFormatString

Gets or sets a display format string for the model. See DisplayFormatString

DisplayFormatStringProvider

Gets or sets a delegate which is used to get the display format string for the model. See DisplayFormatString.

DisplayName

Gets or sets a delegate which is used to get a value for the display name of the model. See DisplayName.

EditFormatString

Gets or sets an edit format string for the model. See EditFormatString

EditFormatStringProvider

Gets or sets a delegate which is used to get the edit format string for the model. See EditFormatString.

EnumGroupedDisplayNamesAndValues

Gets the ordered and grouped display names and values of all Enum values in UnderlyingOrModelType. See EnumGroupedDisplayNamesAndValues.

EnumNamesAndValues

Gets the names and values of all Enum values in UnderlyingOrModelType. See EnumNamesAndValues.

HasNonDefaultEditFormat

Gets or sets a value indicating whether or not the model has a non-default edit format. See HasNonDefaultEditFormat

HideSurroundingHtml

Gets or sets a value indicating if the surrounding HTML should be hidden. See HideSurroundingHtml

HtmlEncode

Gets or sets a value indicating if the model value should be HTML encoded. See HtmlEncode

IsEnum

Gets a value indicating whether UnderlyingOrModelType is for an Enum. See IsEnum.

IsFlagsEnum

Gets a value indicating whether UnderlyingOrModelType is for an Enum with an associated FlagsAttribute. See IsFlagsEnum.

NullDisplayText

Gets or sets the text to display when the model value is null. See NullDisplayText

NullDisplayTextProvider

Gets or sets a delegate which is used to get the text to display when the model is null. See NullDisplayText.

Order

Gets or sets the order. See Order

Placeholder

Gets or sets a delegate which is used to get a value for the model's placeholder text. See Placeholder.

ShowForDisplay

Gets or sets a value indicating whether or not to include in the model value in display. See ShowForDisplay

ShowForEdit

Gets or sets a value indicating whether or not to include in the model value in an editor. See ShowForEdit

SimpleDisplayProperty

Gets or sets a the property name of a model property to use for display. See SimpleDisplayProperty

TemplateHint

Gets or sets a hint for location of a display or editor template. See TemplateHint

Applies to