Property TypeNameDisplayStyle
- Namespace
- Alternet.FormDesigner.WinForms
- Assembly
- Alternet.FormDesigner.v9.dll
TypeNameDisplayStyle
Gets or sets an appearance of the item's type name in the outline control.
public OutlineControlTypeNameDisplayStyle TypeNameDisplayStyle { get; set; }
Property Value
Examples
Here is how to use a TypeNameDisplayStyle 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 outlineControl = new OutlineControl();
outlineControl.Dock = System.Windows.Forms.DockStyle.Fill;
outlineControl.FormDesignerControl = formDesigner;
outlineControl.TypeNameDisplayStyle = OutlineControlTypeNameDisplayStyle.Full;
}
}
Here is how to use a TypeNameDisplayStyle 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 outlineControl = New OutlineControl()
outlineControl.Dock = Windows.Forms.DockStyle.Fill
outlineControl.FormDesignerControl = formDesigner
outlineControl.TypeNameDisplayStyle = OutlineControlTypeNameDisplayStyle.Full
End Sub
End Class
Remarks
You can use this property to determine whether OutlineControl should display the full type name, the short type name, or none of them. The default value is Short.