IconExtensionsGetIconLayers Method
Gets all the icon layers contained in a Icon.
Namespace: DevCase.Extensions.IconExtensionsAssembly: DevCase.net48 (in DevCase.net48.dll) Version: 6.0.0.0 (6.0)
XMLNS for XAML: Not mapped to an xmlns.
[EditorBrowsableAttribute(EditorBrowsableState.Always)]
public static Icon[] GetIconLayers(
this Icon sender
)
<ExtensionAttribute>
<EditorBrowsableAttribute(EditorBrowsableState.Always)>
Public Shared Function GetIconLayers (
sender As Icon
) As Icon()
Dim sender As Icon
Dim returnValue As Icon()
returnValue = sender.GetIconLayers()
public:
[ExtensionAttribute]
[EditorBrowsableAttribute(EditorBrowsableState::Always)]
static array<Icon^>^ GetIconLayers(
Icon^ sender
)
[<ExtensionAttribute>]
[<EditorBrowsableAttribute(EditorBrowsableState.Always)>]
static member GetIconLayers :
sender : Icon -> Icon[]
No code example is currently available or this language may not be supported.
- sender Icon
-
The source Icon.
Icon
An array of
Icon containing the icon layers.
In Visual Basic and C#, you can call this method as an instance method on any object of type
Icon. When you use instance method syntax to call this method, omit the first parameter. For more information, see
Extension Methods (Visual Basic) or
Extension Methods (C# Programming Guide).
This is a code example.
No code example is currently available or this language may not be supported.
Dim ico As New Icon("C:\Image.ico")
Dim icons As Icon() = ico.GetIconLayers()
PictureBox1.BackgroundImageLayout = ImageLayout.None
PictureBox1.Image = Bitmap.FromHicon(icons(0).Handle)
No code example is currently available or this language may not be supported.
No code example is currently available or this language may not be supported.
No code example is currently available or this language may not be supported.
No code example is currently available or this language may not be supported.