how to hide splitter or set SplitterSize to zero?

Add-in Express™ Support Service
That's what is more important than anything else

how to hide splitter or set SplitterSize to zero?
 
liu jian




Posts: 3
Joined: 2019-10-29
hi, i want to hide splitter,i try to set Splitter to None and IsHiddenStateAllowed to false, but Splitter size always keep 4px, how can i to do it ? thank you!
Posted 06 Aug, 2020 03:24:17 Top
Andrei Smolin


Add-in Express team


Posts: 17306
Joined: 2006-05-11
Hello Liu,

Below is an Excel-oriented code sample based on principles described at https://www.add-in-express.com/creating-addins-blog/2016/05/31/customize-appearance-excel-task-panes-outlook-regions/.

Regards from Belarus (GMT+3),

Andrei Smolin
Add-in Express Team Leader

namespace MyAddin18
{  
    public partial class ADXExcelTaskPane1 : AddinExpress.XL.ADXExcelTaskPane
    {
        public ADXExcelTaskPane1()
        {
            InitializeComponent();
        }

        protected override Type GetContainerControlType()
        {
            return typeof(MyTaskPane);
        }
    }

    public class MyTaskPane : ADXContainerControlXL
    {
        public override Padding Padding
        {
            get
            {
                var padding = base.Padding;
                padding.Right = -4;
                return padding;
            }
        }
    }
}
Posted 06 Aug, 2020 09:31:37 Top
liu jian




Posts: 3
Joined: 2019-10-29
hi, i try to do this, but get this error:
error CS0433: typename“ADXContainerControlPP”exists in both“AddinExpress.WD.2005, Version=9.4.4644.0, Culture=neutral, PublicKeyToken=e69a7e0f3592d2b8”and“AddinExpress.XL.2005, Version=9.4.4644.0, Culture=neutral, PublicKeyToken=e69a7e0f3592d2b8”

i find this error code from MSDN alias, is there anyother solution? thank you
Posted 06 Aug, 2020 23:11:45 Top
Andrei Smolin


Add-in Express team


Posts: 17306
Joined: 2006-05-11
Hello Liu,

There are two ways. You can split the add-ins so that they inhabit different assemblies. Another way is this. You create another class library project and move the MyTaskPane to it. This requires that this project has a reference to AddinExpress.XL.2005.dll.

In your add-in project, you add a reference to the class library project above and modify protected override Type GetContainerControlType() so that it returns the type of MyTaskPane from the class library.

Regards from Belarus (GMT+3),

Andrei Smolin
Add-in Express Team Leader
Posted 07 Aug, 2020 03:36:04 Top