本文整理汇总了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);
}
示例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);
}
示例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);
}
示例4: InitializeToDefault
/// <override></override>
protected internal override void InitializeToDefault(IStyleSet styleSet)
{
foreach (Shape shape in children)
shape.InitializeToDefault(styleSet);
}
示例5: MakePreview
/// <override></override>
public override void MakePreview(IStyleSet styleSet)
{
foreach (Shape shape in children)
shape.MakePreview(styleSet);
}
示例6: DrumStorageSymbol
protected internal DrumStorageSymbol(ShapeType shapeType, IStyleSet styleSet)
: base(shapeType, styleSet)
{
}
示例7: DisplaySymbol
protected internal DisplaySymbol(ShapeType shapeType, IStyleSet styleSet)
: base(shapeType, styleSet)
{
}
示例8: DecisionSymbol
/// <override></override>
protected internal DecisionSymbol(ShapeType shapeType, IStyleSet styleSet)
: base(shapeType, styleSet)
{
}
示例9: InitializeToDefault
/// <override></override>
protected override void InitializeToDefault(IStyleSet styleSet)
{
base.InitializeToDefault(styleSet);
pointBuffer = new Point[6];
Height = 60;
Width = 20;
}
示例10: FlowChartDiamondBase
protected internal FlowChartDiamondBase(ShapeType shapeType, IStyleSet styleSet)
: base(shapeType, styleSet)
{
}
示例11: IsoscelesTriangle
protected internal IsoscelesTriangle(ShapeType shapeType, IStyleSet styleSet)
: base(shapeType, styleSet)
{
}
示例12: FreeTriangle
protected FreeTriangle(ShapeType shapeType, IStyleSet styleSet)
: base(shapeType, styleSet)
{
}
示例13: PathBasedPlanarShape
/// <ToBeCompleted></ToBeCompleted>
protected internal PathBasedPlanarShape(ShapeType shapeType, IStyleSet styleSet)
: base(shapeType, styleSet)
{
Construct();
}
示例14: InitializeToDefault
/// <override></override>
protected internal override void InitializeToDefault(IStyleSet styleSet)
{
base.InitializeToDefault(styleSet);
controlPoints = new Point[ControlPointCount];
FillStyle = styleSet.FillStyles.Blue;
}
示例15: MakePreview
/// <override></override>
public override void MakePreview(IStyleSet styleSet)
{
base.MakePreview(styleSet);
privateFillStyle = styleSet.GetPreviewStyle(FillStyle);
}