public ToolbarElementAttribute(Type contextType, string strip, RibbonElementType elementType = RibbonElementType.LargeButton) : base(typeof(IToolbarElement)) { ContextType = contextType; SortOrder = 0; Strip = strip; Chunk = string.Empty; ElementType = elementType; }
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; }
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; }