Property Options
- Namespace
- Alternet.FormDesigner.WinForms
- Assembly
- Alternet.FormDesigner.v9.dll
Options
Gets designer options like snap settings, grid size etc.
public FormDesignerOptions Options { get; }
Property Value
Examples
Here is how to use a Options 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.Fill;
formDesigner.Parent = this;
formDesigner.Options.UseSnapLines = false;
formDesigner.Options.GridSize = new Size(16, 16);
}
}
Here is how to use a Options 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 = System.Windows.Forms.DockStyle.Fill
formDesigner.Parent = Me
formDesigner.Options.UseSnapLines = False
formDesigner.Options.GridSize = New Size(16, 16)
End Sub
End Class