コード例 #1
0
 public ToolbarElementAttribute(Type contextType, string strip, RibbonElementType elementType = RibbonElementType.LargeButton) : base(typeof(IToolbarElement))
 {
     ContextType = contextType;
     SortOrder   = 0;
     Strip       = strip;
     Chunk       = string.Empty;
     ElementType = elementType;
 }
コード例 #2
0
 public ToolbarElementAttribute(Type contextType, double sortOrder, string strip, string chunk, RibbonElementType elementType = RibbonElementType.LargeButton) : base(typeof(IToolbarElement))
 {
     ContextType = contextType;
     SortOrder   = sortOrder;
     Strip       = strip;
     Chunk       = chunk;
     ElementType = elementType;
 }
コード例 #3
0
 public ToolbarElement([NotNull] IToolbarElement element, double sortOrder, [NotNull] string strip, [NotNull] string chunk, [CanBeNull] string icon, [CanBeNull] string text, [NotNull] Type contextType, RibbonElementType elementType = RibbonElementType.LargeButton)
 {
     Element     = element;
     SortOrder   = sortOrder;
     Strip       = strip;
     Chunk       = chunk;
     Icon        = icon;
     Text        = text;
     ContextType = contextType;
     ElementType = elementType;
 }