本文整理汇总了C#中WeifenLuo.WinFormsUI.DockPane.SetIsActiveDocumentPane方法的典型用法代码示例。如果您正苦于以下问题:C# DockPane.SetIsActiveDocumentPane方法的具体用法?C# DockPane.SetIsActiveDocumentPane怎么用?C# DockPane.SetIsActiveDocumentPane使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类WeifenLuo.WinFormsUI.DockPane
的用法示例。
在下文中一共展示了DockPane.SetIsActiveDocumentPane方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: SetActiveDocumentPane
private void SetActiveDocumentPane()
{
DockPane value = null;
if (ActivePane != null && ActivePane.DockState == DockState.Document)
value = ActivePane;
if (value == null)
{
if (ActiveDocumentPane == null)
value = DockWindows[DockState.Document].DefaultPane;
else if (ActiveDocumentPane.DockPanel != this || ActiveDocumentPane.DockState != DockState.Document)
value = DockWindows[DockState.Document].DefaultPane;
else
value = m_activeDocumentPane;
}
if (m_activeDocumentPane == value)
return;
if (m_activeDocumentPane != null)
m_activeDocumentPane.SetIsActiveDocumentPane(false);
m_activeDocumentPane = value;
if (m_activeDocumentPane != null)
m_activeDocumentPane.SetIsActiveDocumentPane(true);
}