Table of Contents

Property UseMetroIconsForStandardItems

Namespace
Alternet.FormDesigner.WinForms
Assembly
Alternet.FormDesigner.v9.dll

UseMetroIconsForStandardItems

Gets or sets a boolean value indicating whether ToolboxControl should draw standard items using internal icon's collection.

public bool UseMetroIconsForStandardItems { get; set; }

Property Value

bool

Examples

Here is how to use a UseMetroIconsForStandardItems in the C# code:

using Alternet.FormDesigner.WinForms;

public partial class Form1 : Form
{
    private void Form1_Load(object sender, EventArgs e)
    {
        var formDesigner = new FormDesignerControl();
        formDesigner.AutoSaveToSource = false;
        formDesigner.Dock = System.Windows.Forms.DockStyle.Left;
        formDesigner.Parent = this;

        var toolboxControl = new ToolboxControl();
        toolboxControl.Parent = this;
        toolboxControl.Dock = System.Windows.Forms.DockStyle.Fill;
        toolboxControl.FormDesignerControl = formDesigner;
        toolboxControl.UseMetroIconsForStandardItems = false;
    }
}

Here is how to use a UseMetroIconsForStandardItems in the Visual Basic code:

Imports System
Imports Alternet.FormDesigner.WinForms

Partial Public Class Form1
    Inherits Form
    Private Sub Form1_Load(ByVal sender As Object, ByVal e As EventArgs)
        Dim formDesigner = New FormDesignerControl()
        formDesigner.AutoSaveToSource = False
        formDesigner.Dock = Windows.Forms.DockStyle.Left
        formDesigner.Parent = Me

        Dim toolboxControl = New ToolboxControl()
        toolboxControl.Parent = Me
        toolboxControl.Dock = Windows.Forms.DockStyle.Fill
        toolboxControl.FormDesignerControl = formDesigner
        toolboxControl.UseMetroIconsForStandardItems = False
    End Sub
End Class

Remarks

Each toolbox item, represented by the ToolboxControl and described by the specific type, like Button, contains an icon, stored in the <xref:System.Drawing.ToolboxBitmapAttribute>. ToolboxControl uses these icons rather than internal icons when UseMetroIconsForStandardItems is false.

The default value of the UseMetroIconsForStandardItems is true.