Table of Contents

Property PropertyBlacklist

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

PropertyBlacklist

public List<string> PropertyBlacklist { get; }

Property Value

List<string>

Examples

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

public partial class Form1 : Form
{
    private void Form1_Load(object sender, EventArgs e)
    {
        var propertyGrid = new Alternet.FormDesigner.WinForms.PropertyGridControl();
        propertyGrid.Dock = System.Windows.Forms.DockStyle.Fill;
        propertyGrid.FormDesignerControl = designer;
        propertyGrid.PropertyBlacklist.Add("Name");
        propertyGrid.PropertyBlacklist.Add("Text");
    }
}

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

Imports System

Partial Public Class Form1
    Inherits Form
    Private Sub Form1_Load(ByVal sender As Object, ByVal e As EventArgs)
        Dim propertyGrid = New Alternet.FormDesigner.WinForms.PropertyGridControl()
        propertyGrid.Dock = Windows.Forms.DockStyle.Fill
        propertyGrid.FormDesignerControl = designer
        propertyGrid.PropertyBlacklist.Add("Name")
        propertyGrid.PropertyBlacklist.Add("Text")
    End Sub
End Class

Remarks

PropertyBlacklist specifies properties to be invisible in the PropertyGridControl, so the user can not see or change them.