/// <summary> /// Creates an instance of the Attribute /// </summary> /// <param name="paneType">type of the custom task pane</param> /// <param name="title">pane caption</param> public CustomPaneAttribute(Type paneType, string title) { if (null == paneType) throw new ArgumentException("paneType"); PaneType = paneType; Visible = true; DockPosition = PaneDockPosition.msoCTPDockPositionRight; DockPositionRestrict = PaneDockPositionRestrict.msoCTPDockPositionRestrictNone; Width = 150; Height = 150; }
/// <summary> /// Creates an instance of the Attribute /// </summary> /// <param name="paneType">type of the custom task pane</param> /// <param name="title">pane caption</param> public CustomPaneAttribute(Type paneType, string title) { if (null == paneType) { throw new ArgumentException("paneType"); } PaneType = paneType; Visible = true; DockPosition = PaneDockPosition.msoCTPDockPositionRight; DockPositionRestrict = PaneDockPositionRestrict.msoCTPDockPositionRestrictNone; Width = 150; Height = 150; }
/// <summary> /// Creates an instance of the Attribute /// </summary> /// <param name="paneType">type of the custom task pane</param> /// <param name="title">pane caption</param> /// <param name="visible">pane visibility</param> /// <param name="dockPosition">pane dock alignment direction</param> /// <param name="restriction">pane dock alignment restriction</param> /// <param name="width">pane width</param> /// <param name="height">pane height</param> public CustomPaneAttribute(Type paneType, string title, bool visible, PaneDockPosition dockPosition, PaneDockPositionRestrict restriction, int width, int height) { if (null == paneType) { throw new ArgumentException("paneType"); } PaneType = paneType; Title = title; Visible = visible; DockPosition = dockPosition; DockPositionRestrict = restriction; Width = width; Height = height; }
/// <summary> /// Creates an instance of the Attribute /// </summary> /// <param name="paneType">type of the custom task pane</param> /// <param name="title">pane caption</param> /// <param name="visible">pane visibility</param> /// <param name="dockPosition">pane dock alignment direction</param> /// <param name="restriction">pane dock alignment restriction</param> /// <param name="creation">pane creation mode</param> public CustomPaneAttribute(Type paneType, string title, bool visible, PaneDockPosition dockPosition, PaneDockPositionRestrict restriction, PaneCreation creation) { if (null == paneType) { throw new ArgumentException("paneType"); } PaneType = paneType; Title = title; Visible = visible; DockPosition = dockPosition; DockPositionRestrict = restriction; Creation = creation; Width = 150; Height = 150; }
/// <summary> /// Creates an instance of the Attribute /// </summary> /// <param name="paneType">type of the custom task pane</param> /// <param name="title">pane caption</param> /// <param name="visible">pane visibility</param> /// <param name="dockPosition">pane dock alignment direction</param> /// <param name="restriction">pane dock alignment restriction</param> /// <param name="width">pane width</param> /// <param name="height">pane height</param> public CustomPaneAttribute(Type paneType, string title, bool visible, PaneDockPosition dockPosition, PaneDockPositionRestrict restriction, int width, int height) { if (null == paneType) throw new ArgumentException("paneType"); PaneType = paneType; Title = title; Visible = visible; DockPosition = dockPosition; DockPositionRestrict = restriction; Width = width; Height = height; }