How to detect the docking style assigned to a control?
9 Dec 2019 / 1 minute to read
Docking style which is assigned to the control can be detect at run time, using GetDockingStyle
method.
Method | Description |
---|---|
GetDockingStyle |
Returns the current docking style of the control. The return value for this method would be docking style value, that specifies the dock type/position. The docked control for which the dock style is to be identified should be passed as a parameter to this method. The parameter is, Ctrl - Indicates the docked control for which the DockStyle needs to be retrieved. |
//Getting the docking style
private void button1_Click(object sender, EventArgs e)
{
this.dockingManager1.GetDockStyle(this.panel1);
Console.Write("Dock style :" + this.dockingManager1.GetDockStyle(this.panel1));
}
'Getting the docking style
Private Sub button1_Click(ByVal sender As Object, ByVal e As System.EventArgs)
Me.dockingManager1.GetDockStyle(this.panel1)
Console.Write("Dock style :" + this.dockingManager1.GetDockStyle(this.panel1))
End Sub
Was this page helpful?
Yes
No
Thank you for your feedback!
Thank you for your feedback and comments. We will rectify this as soon as possible!
An unknown error has occurred. Please try again.
Help us improve this page