See Also

HtmlBox Class  | HtmlBox Members

Requirements

Platforms: Windows 98, Windows NT 4.0, Windows ME, Windows 2000, Windows XP, Windows Server 2003, Windows Vista

Language

Visual Basic

C#

C++

C++/CLI

Show All

See Also Languages PowerWEB TextBox for ASP.NET

BackgroundImageName Property

Dart.PowerWEB.TextBox Namespace > HtmlBox Class : BackgroundImageName Property (HtmlBox)

Gets or sets the name of the background image to display as the background of the HtmlBox.

[Visual Basic]
<DescriptionAttribute("Gets/sets the image used as the background for the HtmlBox.")> <CategoryAttribute("Appearance")> Public Property BackgroundImageName As String
[C#]
[DescriptionAttribute("Gets/sets the image used as the background for the HtmlBox.")] [CategoryAttribute("Appearance")] public string BackgroundImageName {get; set;}
[C++]
[DescriptionAttribute("Gets/sets the image used as the background for the HtmlBox.")] [CategoryAttribute("Appearance")] public: __property string* get_BackgroundImageName(); public: __property void set_BackgroundImageName(    string* value );
[C++/CLI]
[DescriptionAttribute("Gets/sets the image used as the background for the HtmlBox.")] [CategoryAttribute("Appearance")] public: property String^ BackgroundImageName {    String^ get();    void set (String^ value); }

Return Type

A string containing no instances of "/", "\", or "~" indicating a image file contained within HtmlBox.ImagesDirectory or a string containing one or many instances of "/", "\", or "~" indicating a full virtual, relative, or absolute path to an image file. The default value is an empty string.

Remarks

This property is only indended to be used if you are applying a highly graphical skin to the HtmlBox. Typically, when using this property you would also set HtmlBox.LayoutType to LayoutType.Skin, which configures the HtmlBox to the optimal configuration for graphical skins. For more information about skin creation and usage, see the topic Using Skins.

PowerWEB TextBox for .NET automatically assumes that all images are in the directory specified by HtmlBox.ImagesDirectory. For example, if the value of HtmlBox.ImagesDirectory is "/PowerWEB_TextBox_Common/images" (the default) and this property was set to "myimage.jpg", the control would assume the file can be found at "/PowerWEB_TextBox_Common/images/myimage.jpg". If you set this property to a string that has some form of directory designation, such as "slashes" within it (for example "C:\temp\myimage.jpg") the control would no longer assume that the image is within HtmlBox.ImagesDirectory but would use the full path you supplied for this property.

Requirements

Platforms: Windows 98, Windows NT 4.0, Windows ME, Windows 2000, Windows XP, Windows Server 2003, Windows Vista

See Also

HtmlBox Class  | HtmlBox Members


Send comments on this topic.

Documentation version 3.2.0.0.

© 2009 Dart Communications.  All rights reserved.