当前位置: 首页>>代码示例>>C#>>正文


C# IStyleSet类代码示例

本文整理汇总了C#中IStyleSet的典型用法代码示例。如果您正苦于以下问题:C# IStyleSet类的具体用法?C# IStyleSet怎么用?C# IStyleSet使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。


IStyleSet类属于命名空间,在下文中一共展示了IStyleSet类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。

示例1: StyleListBox

		public StyleListBox(IStyleSet styleSet, Style style, bool showDefaultStyleItem, bool showOpenDesignerItem) :
			this()
		{
			if (styleSet == null) throw new ArgumentNullException("design");
			if (style == null) throw new ArgumentNullException("style");
			Initialize(styleSet, showDefaultStyleItem, showOpenDesignerItem, style.GetType(), style);
		}
开发者ID:stewmc,项目名称:vixen,代码行数:7,代码来源:StyleListBox.cs

示例2: StyleListBox

		public StyleListBox(IWindowsFormsEditorService editorService, IStyleSetProvider styleSetProvider, IStyleSet styleSet, Type selectedStyleType, bool showDefaultStyleItem, bool showOpenDesignerItem)
			: this(editorService) {
			if (styleSetProvider == null) throw new ArgumentNullException("styleSetProvider");
			if (styleSet == null) throw new ArgumentNullException("styleSet");
			if (selectedStyleType == null) throw new ArgumentNullException("selectedStyleType");
			this.styleSetProvider = styleSetProvider;
			Initialize(styleSet, showDefaultStyleItem, showOpenDesignerItem, selectedStyleType, null);
		}
开发者ID:jestonitiro,项目名称:nshape,代码行数:8,代码来源:StyleListBox.cs

示例3: RemoveStyleSetTools

		/// <summary>
		/// Releases resources used for styles of the given <see cref="T:Dataweb.NShape.IStyleSet" />.
		/// </summary>
		public static void RemoveStyleSetTools(IStyleSet styleSet) {
			if (styleSet == null) throw new ArgumentNullException("styleSet");

			// delete GDI+ objects created from styles
			foreach (ICapStyle style in styleSet.CapStyles)
				ToolCache.NotifyCapStyleChanged(style);
			foreach (ICharacterStyle style in styleSet.CharacterStyles)
				ToolCache.NotifyCharacterStyleChanged(style);
			foreach (IColorStyle style in styleSet.ColorStyles)
				ToolCache.NotifyColorStyleChanged(style);
			foreach (IFillStyle style in styleSet.FillStyles)
				ToolCache.NotifyFillStyleChanged(style);
			foreach (ILineStyle style in styleSet.LineStyles)
				ToolCache.NotifyLineStyleChanged(style);
			foreach (IParagraphStyle style in styleSet.ParagraphStyles)
				ToolCache.NotifyParagraphStyleChanged(style);
		}
开发者ID:jestonitiro,项目名称:nshape,代码行数:20,代码来源:ToolCache.cs

示例4: InitializeToDefault

		/// <override></override>
		protected internal override void InitializeToDefault(IStyleSet styleSet)
		{
			foreach (Shape shape in children)
				shape.InitializeToDefault(styleSet);
		}
开发者ID:stewmc,项目名称:vixen,代码行数:6,代码来源:ShapeGroup.cs

示例5: MakePreview

		/// <override></override>
		public override void MakePreview(IStyleSet styleSet)
		{
			foreach (Shape shape in children)
				shape.MakePreview(styleSet);
		}
开发者ID:stewmc,项目名称:vixen,代码行数:6,代码来源:ShapeGroup.cs

示例6: DrumStorageSymbol

 protected internal DrumStorageSymbol(ShapeType shapeType, IStyleSet styleSet)
     : base(shapeType, styleSet)
 {
 }
开发者ID:LudovicT,项目名称:NShape,代码行数:4,代码来源:FlowChartShapes.cs

示例7: DisplaySymbol

 protected internal DisplaySymbol(ShapeType shapeType, IStyleSet styleSet)
     : base(shapeType, styleSet)
 {
 }
开发者ID:LudovicT,项目名称:NShape,代码行数:4,代码来源:FlowChartShapes.cs

示例8: DecisionSymbol

 /// <override></override>
 protected internal DecisionSymbol(ShapeType shapeType, IStyleSet styleSet)
     : base(shapeType, styleSet)
 {
 }
开发者ID:LudovicT,项目名称:NShape,代码行数:5,代码来源:FlowChartShapes.cs

示例9: InitializeToDefault

 /// <override></override>
 protected override void InitializeToDefault(IStyleSet styleSet)
 {
     base.InitializeToDefault(styleSet);
     pointBuffer = new Point[6];
     Height = 60;
     Width = 20;
 }
开发者ID:LudovicT,项目名称:NShape,代码行数:8,代码来源:FlowChartShapes.cs

示例10: FlowChartDiamondBase

 protected internal FlowChartDiamondBase(ShapeType shapeType, IStyleSet styleSet)
     : base(shapeType, styleSet)
 {
 }
开发者ID:LudovicT,项目名称:NShape,代码行数:4,代码来源:FlowChartShapes.cs

示例11: IsoscelesTriangle

 protected internal IsoscelesTriangle(ShapeType shapeType, IStyleSet styleSet)
     : base(shapeType, styleSet)
 {
 }
开发者ID:kjburns31,项目名称:vixen-modules,代码行数:4,代码来源:TriangleShapes.cs

示例12: FreeTriangle

 protected FreeTriangle(ShapeType shapeType, IStyleSet styleSet)
     : base(shapeType, styleSet)
 {
 }
开发者ID:kjburns31,项目名称:vixen-modules,代码行数:4,代码来源:TriangleShapes.cs

示例13: PathBasedPlanarShape

 /// <ToBeCompleted></ToBeCompleted>
 protected internal PathBasedPlanarShape(ShapeType shapeType, IStyleSet styleSet)
     : base(shapeType, styleSet)
 {
     Construct();
 }
开发者ID:LudovicT,项目名称:NShape,代码行数:6,代码来源:PathBasedShape.cs

示例14: InitializeToDefault

 /// <override></override>
 protected internal override void InitializeToDefault(IStyleSet styleSet)
 {
     base.InitializeToDefault(styleSet);
     controlPoints = new Point[ControlPointCount];
     FillStyle = styleSet.FillStyles.Blue;
 }
开发者ID:LudovicT,项目名称:NShape,代码行数:7,代码来源:PathBasedShape.cs

示例15: MakePreview

 /// <override></override>
 public override void MakePreview(IStyleSet styleSet)
 {
     base.MakePreview(styleSet);
     privateFillStyle = styleSet.GetPreviewStyle(FillStyle);
 }
开发者ID:LudovicT,项目名称:NShape,代码行数:6,代码来源:PathBasedShape.cs


注:本文中的IStyleSet类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。