当前位置: 首页>>代码示例>>C#>>正文


C# DockAlignment类代码示例

本文整理汇总了C#中DockAlignment的典型用法代码示例。如果您正苦于以下问题:C# DockAlignment类的具体用法?C# DockAlignment怎么用?C# DockAlignment使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。


DockAlignment类属于命名空间,在下文中一共展示了DockAlignment类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。

示例1: SetStatus

 internal void SetStatus(NestedPaneCollection nestedPanes, DockPane previousPane, DockAlignment alignment, double proportion)
 {
     m_nestedPanes = nestedPanes;
     m_previousPane = previousPane;
     m_alignment = alignment;
     m_proportion = proportion;
 }
开发者ID:zpLin,项目名称:flashdevelop,代码行数:7,代码来源:NestedDockingStatus.cs

示例2: DockPane

 protected internal DockPane(IDockContent content, DockPane previousPane, DockAlignment alignment, double proportion,
                             bool show)
 {
     if (previousPane == null)
         throw (new ArgumentNullException("previousPane"));
     InternalConstruct(content, previousPane.DockState, false, Rectangle.Empty, previousPane, alignment, proportion, show);
 }
开发者ID:Vizzini,项目名称:netgore,代码行数:7,代码来源:DockPane.cs

示例3: NestedDock

 public NestedDock(String file, Int32 nest, Int32 index, DockAlignment align, double prop)
 {
     this.file = file;
     this.nest = nest;
     this.index = index;
     this.align = align;
     this.prop = prop;
 }
开发者ID:Neverbirth,项目名称:flashdevelop,代码行数:8,代码来源:SessionManager.cs

示例4: ShowDock

        public void ShowDock(DockPane pane, DockAlignment align, double proportion)
        {
            FormClosed += new FormClosedEventHandler(dock_FormClosed);
            
            if (m_Docks.Count > 0)
                Show(m_Docks[0].Pane, m_Docks[0]);
            else
                Show(pane, align, proportion);

            m_Docks.Add(this);
        }
开发者ID:Lonesled,项目名称:renderdoc,代码行数:11,代码来源:ConstantBufferPreviewer.cs

示例5: InternalConstruct

		private void InternalConstruct(IDockContent content, DockState dockState, bool flagBounds, Rectangle floatWindowBounds, DockPane prevPane, DockAlignment alignment, double proportion, bool show)
		{
			if (dockState == DockState.Hidden || dockState == DockState.Unknown)
				throw new ArgumentException(Strings.DockPane_SetDockState_InvalidState);

			if (content == null)
				throw new ArgumentNullException(Strings.DockPane_Constructor_NullContent);

			if (content.DockHandler.DockPanel == null)
				throw new ArgumentException(Strings.DockPane_Constructor_NullDockPanel);


			SuspendLayout();
			SetStyle(ControlStyles.Selectable, false);

			m_isFloat = (dockState == DockState.Float);

			m_contents = new DockContentCollection();
			m_displayingContents = new DockContentCollection(this);
			m_dockPanel = content.DockHandler.DockPanel;
			m_dockPanel.AddPane(this);

			m_splitter = new SplitterControl(this);

			m_nestedDockingStatus = new NestedDockingStatus(this);

			m_captionControl = DockPanel.DockPaneCaptionFactory.CreateDockPaneCaption(this);
			m_tabStripControl = DockPanel.DockPaneStripFactory.CreateDockPaneStrip(this);
			Controls.AddRange(new Control[] {	m_captionControl, m_tabStripControl	});
			
			DockPanel.SuspendLayout(true);
			if (flagBounds)
				FloatWindow = DockPanel.FloatWindowFactory.CreateFloatWindow(DockPanel, this, floatWindowBounds);
			else if (prevPane != null)
				DockTo(prevPane.NestedPanesContainer, prevPane, alignment, proportion);

			SetDockState(dockState);
			if (show)
				content.DockHandler.Pane = this;
			else if (this.IsFloat)
				content.DockHandler.FloatPane = this;
			else
				content.DockHandler.PanelPane = this;

			ResumeLayout();
			DockPanel.ResumeLayout(true, true);
		}
开发者ID:moljac,项目名称:MonoMobile.SharpSNMP,代码行数:47,代码来源:DockPane.cs

示例6: MergeNestedPanes

        private static void MergeNestedPanes(VisibleNestedPaneCollection nestedPanesFrom, NestedPaneCollection nestedPanesTo, DockPane prevPane, DockAlignment alignment, double proportion)
        {
            if (nestedPanesFrom.Count == 0)
                return;

            int count = nestedPanesFrom.Count;
            DockPane[] panes = new DockPane[count];
            DockPane[] prevPanes = new DockPane[count];
            DockAlignment[] alignments = new DockAlignment[count];
            double[] proportions = new double[count];

            for (int i = 0; i < count; i++)
            {
                panes[i] = nestedPanesFrom[i];
                prevPanes[i] = nestedPanesFrom[i].NestedDockingStatus.PreviousPane;
                alignments[i] = nestedPanesFrom[i].NestedDockingStatus.Alignment;
                proportions[i] = nestedPanesFrom[i].NestedDockingStatus.Proportion;
            }

            DockPane pane = panes[0].DockTo(nestedPanesTo.Container, prevPane, alignment, proportion);
            panes[0].DockState = nestedPanesTo.DockState;

            for (int i = 1; i < count; i++)
            {
                for (int j = i; j < count; j++)
                {
                    if (prevPanes[j] == panes[i - 1])
                        prevPanes[j] = pane;
                }
                pane = panes[i].DockTo(nestedPanesTo.Container, prevPanes[i], alignments[i], proportions[i]);
                panes[i].DockState = nestedPanesTo.DockState;
            }
        }
开发者ID:lostinspacebar,项目名称:dockpanelsuite,代码行数:33,代码来源:FloatWindow.cs

示例7: Show

 /// <include file='CodeDoc\DockContent.xml' path='//CodeDoc/Class[@name="DockContent"]/Method[@name="Show(DockPane, DockAlignment, double)"]/*'/>
 public void Show(DockPane prevPane, DockAlignment alignment, double proportion)
 {
     DockHandler.Show(prevPane, alignment, proportion);
 }
开发者ID:itsbth,项目名称:GLuaR,代码行数:5,代码来源:DockableWindow.cs

示例8: Show

		/// <include file='CodeDoc\DockContentHandler.xml' path='//CodeDoc/Class[@name="DockContentHandler"]/Method[@name="Show(DockPane, DockAlignment, double)"]/*'/>
		public void Show(DockPane prevPane, DockAlignment alignment, double proportion)
		{
			if (prevPane == null)
				throw(new ArgumentException(ResourceHelper.GetString("IDockContent.Show.InvalidPrevPane")));

			if (DockHelper.IsDockStateAutoHide(prevPane.DockState))
				throw(new ArgumentException(ResourceHelper.GetString("IDockContent.Show.InvalidPrevPane")));

			DockPanel = prevPane.DockPanel;
			DockPanel.DockPaneFactory.CreateDockPane(Content, prevPane, alignment, proportion, true);
			Show();
		}
开发者ID:xuchuansheng,项目名称:GenXSource,代码行数:13,代码来源:DockContentHandler.cs

示例9: SetDisplayingStatus

 internal void SetDisplayingStatus(bool isDisplaying, DockPane displayingPreviousPane, DockAlignment displayingAlignment, double displayingProportion)
 {
     m_isDisplaying = isDisplaying;
     m_displayingPreviousPane = displayingPreviousPane;
     m_displayingAlignment = displayingAlignment;
     m_displayingProportion = displayingProportion;
 }
开发者ID:olivierdagenais,项目名称:branchreview,代码行数:7,代码来源:NestedDockingStatus.cs

示例10: ShowDock

        public static void ShowDock(DockContent dock, DockPane pane, DockAlignment align, double proportion)
        {
            dock.FormClosed += new FormClosedEventHandler(dock_FormClosed);

            if (m_Docks.Count > 0)
                dock.Show(m_Docks[0].Pane, m_Docks[0]);
            else
                dock.Show(pane, align, proportion);

            m_Docks.Add(dock);
        }
开发者ID:Waferix,项目名称:renderdoc,代码行数:11,代码来源:ConstantBufferPreviewer.cs

示例11: DockTo

        public DockPane DockTo(INestedPanesContainer container, DockPane previousPane, DockAlignment alignment, double proportion)
        {
            if (container == null)
                throw new InvalidOperationException(Strings.DockPane_DockTo_NullContainer);

            if (container.IsFloat == this.IsFloat)
            {
                this.InternalAddToDockList(container, previousPane, alignment, proportion);
                return this;
            }

            IDockContent firstContent = this.GetFirstContent(container.DockState);
            if (firstContent == null)
                return null;

            DockPane pane;
            this.DockPanel.DummyContent.DockPanel = this.DockPanel;
            if (container.IsFloat)
                pane = this.DockPanel.DockPaneFactory.CreateDockPane(this.DockPanel.DummyContent, (FloatWindow)container, true);
            else
                pane = this.DockPanel.DockPaneFactory.CreateDockPane(this.DockPanel.DummyContent, container.DockState, true);

            pane.DockTo(container, previousPane, alignment, proportion);
            this.SetVisibleContentsToPane(pane);
            this.DockPanel.DummyContent.DockPanel = null;

            return pane;
        }
开发者ID:borisblizzard,项目名称:arcreator,代码行数:28,代码来源:DockPane.cs

示例12: VS2013DockPane

 public VS2013DockPane(IDockContent content, DockPane previousPane, DockAlignment alignment, double proportion, bool show)
     : base(content, previousPane, alignment, proportion, show)
 {
 }
开发者ID:dockpanelsuite,项目名称:dockpanelsuite,代码行数:4,代码来源:VS2013DockPane.cs

示例13: Show

        public void Show(DockPane previousPane, DockAlignment alignment, double proportion)
        {
            if (previousPane == null)
                throw(new ArgumentException(Strings.DockContentHandler_Show_InvalidPrevPane));

            if (DockHelper.IsDockStateAutoHide(previousPane.DockState))
                throw(new ArgumentException(Strings.DockContentHandler_Show_InvalidPrevPane));

            previousPane.DockPanel.SuspendLayout(true);

            DockPanel = previousPane.DockPanel;
            DockPanel.DockPaneFactory.CreateDockPane(Content, previousPane, alignment, proportion, true);
            Show();

            previousPane.DockPanel.ResumeLayout(true, true);
        }
开发者ID:rbrzezinski,项目名称:Trax,代码行数:16,代码来源:DockContentHandler.cs

示例14: AddToDockList

		/// <include file='CodeDoc\DockPane.xml' path='//CodeDoc/Class[@name="DockPane"]/Method[@name="AddToDockList(IDockListContainer, DockPane, DockAlignment, double)"]/*'/>
		public DockPane AddToDockList(IDockListContainer container, DockPane prevPane, DockAlignment alignment, double proportion)
		{
			if (container == null)
				throw new InvalidOperationException(ResourceHelper.GetString("DockPane.AddToDockList.NullContainer"));

			if (container.IsFloat == this.IsFloat)
			{
				InternalAddToDockList(container, prevPane, alignment, proportion);
				return this;
			}

			IDockContent firstContent = GetFirstContent(container.DockState);
			if (firstContent == null)
				return null;

			DockPane pane;
			DockPanel.DummyContent.DockPanel = DockPanel;
			if (container.IsFloat)
				pane = DockPanel.DockPaneFactory.CreateDockPane(DockPanel.DummyContent, (FloatWindow)container, true);
			else
				pane = DockPanel.DockPaneFactory.CreateDockPane(DockPanel.DummyContent, container.DockState, true);

			pane.AddToDockList(container, prevPane, alignment, proportion);
			SetVisibleContentsToPane(pane);
			DockPanel.DummyContent.DockPanel = null;

			return pane;
		}
开发者ID:xuchuansheng,项目名称:GenXSource,代码行数:29,代码来源:DockPane.cs

示例15: TileWindows

		/// ------------------------------------------------------------------------------------
		/// <summary>
		/// Tiles the windows.
		/// </summary>
		/// ------------------------------------------------------------------------------------
		private void TileWindows(DockAlignment alignment)
		{
			m_dockPanel.SuspendLayout();

			IDockContent[] documents = m_dockPanel.DocumentsToArray();
			DockContent wndAnchor = documents[0] as DockContent;
			if (wndAnchor == null)
				return;

			IDockContent currentWnd = m_dockPanel.ActiveDocument;

			for (int i = documents.Length - 1; i > 0; i--)
			{
				double proportion = 1.0 / (i + 1);
				DockContent wnd = documents[i] as DockContent;
				if (wnd != null)
					wnd.Show(m_dockPanel.Panes[0], alignment, proportion);
			}

			((DockContent)currentWnd).Activate();
			m_dockPanel.ResumeLayout();
		}
开发者ID:sillsdev,项目名称:FieldWorks,代码行数:27,代码来源:ObjectBrowser.cs


注:本文中的DockAlignment类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。