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


C# TabPage.GetTCITEM方法代码示例

本文整理汇总了C#中System.Windows.Forms.TabPage.GetTCITEM方法的典型用法代码示例。如果您正苦于以下问题:C# TabPage.GetTCITEM方法的具体用法?C# TabPage.GetTCITEM怎么用?C# TabPage.GetTCITEM使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在System.Windows.Forms.TabPage的用法示例。


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

示例1: UpdateTab

 internal void UpdateTab(TabPage tabPage)
 {
     int index = this.FindTabPage(tabPage);
     this.SetTabPage(index, tabPage, tabPage.GetTCITEM());
     this.cachedDisplayRect = Rectangle.Empty;
     this.UpdateTabSelection(false);
 }
开发者ID:pritesh-mandowara-sp,项目名称:DecompliedDotNetLibraries,代码行数:7,代码来源:TabControl.cs

示例2: UpdateTab

        /// <include file='doc\TabControl.uex' path='docs/doc[@for="TabControl.UpdateTab"]/*' />
        /// <devdoc>
        /// </devdoc>
        /// <internalonly/>
        internal void UpdateTab(TabPage tabPage) {
            int index = FindTabPage(tabPage);
            SetTabPage(index, tabPage, tabPage.GetTCITEM());

            // It's possible that changes to this TabPage will change the DisplayRectangle of the
            // TabControl (e.g. ASURT 99087), so invalidate and resize the size of this page.
            //
            cachedDisplayRect = Rectangle.Empty;
            UpdateTabSelection(false);
        }
开发者ID:nlh774,项目名称:DotNetReferenceSource,代码行数:14,代码来源:TabControl.cs

示例3: InsertItem

 private void InsertItem(int index, TabPage tabPage)
 {
     if ((index < 0) || ((this.tabPages != null) && (index > this.tabPageCount)))
     {
         throw new ArgumentOutOfRangeException("index", System.Windows.Forms.SR.GetString("InvalidArgument", new object[] { "index", index.ToString(CultureInfo.CurrentCulture) }));
     }
     if (tabPage == null)
     {
         throw new ArgumentNullException("tabPage");
     }
     if (base.IsHandleCreated)
     {
         System.Windows.Forms.NativeMethods.TCITEM_T tCITEM = tabPage.GetTCITEM();
         int num = (int) System.Windows.Forms.UnsafeNativeMethods.SendMessage(new HandleRef(this, base.Handle), System.Windows.Forms.NativeMethods.TCM_INSERTITEM, index, tCITEM);
         if (num >= 0)
         {
             this.Insert(num, tabPage);
         }
     }
 }
开发者ID:pritesh-mandowara-sp,项目名称:DecompliedDotNetLibraries,代码行数:20,代码来源:TabControl.cs

示例4: InsertItem

        /// <include file='doc\TabControl.uex' path='docs/doc[@for="TabControl.InsertItem"]/*' />
        /// <devdoc>
        ///     This function is used by the Insert Logic to insert a tabPage in the current TabPage in the TabPageCollection.
        /// </devdoc>
        /// <internalonly/>
        private void InsertItem(int index, TabPage tabPage) {

            if (index < 0 || ((tabPages != null) && index > tabPageCount))
                throw new ArgumentOutOfRangeException("index", SR.GetString(SR.InvalidArgument, "index", index.ToString(CultureInfo.CurrentCulture)));
            if (tabPage == null)
                throw new ArgumentNullException("tabPage");


            int retIndex;
            if (IsHandleCreated) {
                NativeMethods.TCITEM_T tcitem = tabPage.GetTCITEM();
                retIndex = (int)UnsafeNativeMethods.SendMessage(new HandleRef(this, Handle), NativeMethods.TCM_INSERTITEM, index, tcitem);
                if (retIndex >= 0) Insert(retIndex, tabPage);
            }

        }
开发者ID:nlh774,项目名称:DotNetReferenceSource,代码行数:21,代码来源:TabControl.cs


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