ImageWebPart.BackgroundColor Property
Gets or sets the color applied to the background of this Web Part.
Namespace: Microsoft.SharePoint.WebPartPages
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Available in Sandboxed Solutions: No
Syntax
'Declaration
<ResourcesAttribute("BackgroundColorLabel", "Advanced", "BackgroundColor")> _
<WebPartStorageAttribute(Storage.Shared)> _
Public Property BackgroundColor As String
Get
Set
'Usage
Dim instance As ImageWebPart
Dim value As String
value = instance.BackgroundColor
instance.BackgroundColor = value
[ResourcesAttribute("BackgroundColorLabel", "Advanced", "BackgroundColor")]
[WebPartStorageAttribute(Storage.Shared)]
public string BackgroundColor { get; set; }
Property Value
Type: System.String
A string that specifies the color applied to the background of this Web Part.
Remarks
To set the value of this property, you can use standard HTML color names such as "blue", or you can use hex values such as "#FFFFFF".