示例#1
0
		public override void Generate(ToolBar toolBar)
		{
			var tbb = new SeparatorToolBarItem(toolBar.Generator) { Type = this.ToolBarType };
			if (!string.IsNullOrEmpty (ToolBarItemStyle))
				tbb.Style = ToolBarItemStyle;
			toolBar.Items.Add(tbb);
		}
示例#2
0
		public override ToolBarItem GenerateToolBarItem(Generator generator, ToolBarTextAlign textAlign)
		{
			var tbb = new SeparatorToolBarItem(generator) { Type = this.ToolBarType };
			if (!string.IsNullOrEmpty (ToolBarItemStyle))
				tbb.Style = ToolBarItemStyle;
			return tbb;
		}
示例#3
0
        public override void Generate(ToolBar toolBar)
        {
            var tbb = new SeparatorToolBarItem(toolBar.Generator)
            {
                Type = this.ToolBarType
            };

            if (!string.IsNullOrEmpty(ToolBarItemStyle))
            {
                tbb.Style = ToolBarItemStyle;
            }
            toolBar.Items.Add(tbb);
        }
示例#4
0
        public override ToolBarItem GenerateToolBarItem(Generator generator, ToolBarTextAlign textAlign)
        {
            var tbb = new SeparatorToolBarItem(generator)
            {
                Type = this.ToolBarType
            };

            if (!string.IsNullOrEmpty(ToolBarItemStyle))
            {
                tbb.Style = ToolBarItemStyle;
            }
            return(tbb);
        }