Partager via


Width Property

For the latest version of Commerce Server 2007 Help, see the Microsoft Web site.

Gets or sets the Width of the DisplaySize object.

Namespace:  Microsoft.CommerceServer.Marketing
Assembly:  Microsoft.CommerceServer.Marketing.CrossTierTypes (in Microsoft.CommerceServer.Marketing.CrossTierTypes.dll)

Syntax

'Declaration
Public Property Width As Short
'Usage
Dim instance As DisplaySize
Dim value As Short

value = instance.Width

instance.Width = value
public short Width { get; set; }
public:
property short Width {
    short get ();
    void set (short value);
}
public function get Width () : short
public function set Width (value : short)

Property Value

Type: System..::.Int16
The Width of the DisplaySize.

Exceptions

Exception Condition
MinimumValueValidationException

An attempt was made to set the width to a negative value.

Remarks

Width in pixels. When the object is saved, this property may remain 0.

Permissions

See Also

Reference

DisplaySize Class

DisplaySize Members

Microsoft.CommerceServer.Marketing Namespace