本文整理汇总了C#中PaintDotNet.List.Add方法的典型用法代码示例。如果您正苦于以下问题:C# List.Add方法的具体用法?C# List.Add怎么用?C# List.Add使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类PaintDotNet.List
的用法示例。
在下文中一共展示了List.Add方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: UnhookStylus
public static void UnhookStylus(Control control)
{
lock (hookedControls.SyncRoot)
{
List<WeakReference> deleteUs = new List<WeakReference>();
foreach (WeakReference weakRef in hookedControls.Keys)
{
object target = weakRef.Target;
if (target == null)
{
deleteUs.Add(weakRef);
}
else
{
Control control2 = (Control)target;
if (object.ReferenceEquals(control, control2))
{
deleteUs.Add(weakRef);
}
}
}
foreach (WeakReference weakRef in deleteUs)
{
RealTimeStylus stylus = (RealTimeStylus)hookedControls[weakRef];
stylus.Enabled = false;
stylus.AsyncPluginCollection.Clear();
hookedControls.Remove(weakRef);
}
}
}
示例2: OnCreateSavePropertyCollection
public override PropertyCollection OnCreateSavePropertyCollection()
{
List<Property> props = new List<Property>();
props.Add(new Int32Property(PropertyNames.DitherLevel, 7, 0, 8));
props.Add(new Int32Property(PropertyNames.Threshold, 128, 0, 255));
return new PropertyCollection(props);
}
示例3: OnCreatePropertyCollection
protected override PropertyCollection OnCreatePropertyCollection()
{
List<Property> props = new List<Property>();
props.Add(new Int32Property(PropertyNames.BrushSize, 3, 1, 8));
props.Add(new Int32Property(PropertyNames.Coarseness, 50, 3, 255));
return new PropertyCollection(props);
}
示例4: OnCreatePropertyCollection
protected override PropertyCollection OnCreatePropertyCollection()
{
List<Property> props = new List<Property>();
props.Add(new Int32Property(PropertyNames.Radius, 10, 0, 200));
props.Add(new DoubleProperty(PropertyNames.Strength, 0.4, 0, 1));
return new PropertyCollection(props);
}
示例5: OnCreatePropertyCollection
protected override PropertyCollection OnCreatePropertyCollection()
{
List<Property> propsBuilder = new List<Property>();
propsBuilder.Add(new DoubleProperty("X", 0.3, 0, 1));
propsBuilder.Add(new DoubleProperty("Y", 0.5, 0, 1));
propsBuilder.Add(new DoubleProperty("Z", 0.11, 0, 1));
return new PropertyCollection(propsBuilder.ToArray());
}
示例6: OnCreatePropertyCollection
protected override PropertyCollection OnCreatePropertyCollection()
{
List<Property> props = new List<Property>();
props.Add(new Int32Property(PropertyNames.Tolerance, 70, 0, 100));
props.Add(new Int32Property(PropertyNames.Saturation, 90, 0, 100));
return new PropertyCollection(props);
}
示例7: OnCreatePropertyCollection
protected override PropertyCollection OnCreatePropertyCollection()
{
List<Property> props = new List<Property>();
props.Add(new Int32Property(PropertyNames.Radius, 10, 1, 200));
props.Add(new Int32Property(PropertyNames.Percentile, 50, 0, 100));
return new PropertyCollection(props);
}
示例8: OnCreatePropertyCollection
protected override PropertyCollection OnCreatePropertyCollection()
{
List<Property> props = new List<Property>();
props.Add(new Int32Property(PropertyNames.Softness, 5, 0, 10));
props.Add(new Int32Property(PropertyNames.Lighting, 0, -20, +20));
props.Add(new Int32Property(PropertyNames.Warmth, 10, 0, 20));
return new PropertyCollection(props);
}
示例9: OnCreatePropertyCollection
protected override PropertyCollection OnCreatePropertyCollection()
{
List<Property> props = new List<Property>();
props.Add(new Int32Property(PropertyNames.Intensity, 64, 0, 100));
props.Add(new Int32Property(PropertyNames.Saturation, 100, 0, 400));
props.Add(new DoubleProperty(PropertyNames.Coverage, 100, 0, 100));
return new PropertyCollection(props);
}
示例10: OnCreatePropertyCollection
protected override PropertyCollection OnCreatePropertyCollection()
{
List<Property> props = new List<Property>();
props.Add(new Int32Property(PropertyNames.Radius, 6, 1, 20));
props.Add(new Int32Property(PropertyNames.Brightness, 10, -100, +100));
props.Add(new Int32Property(PropertyNames.Contrast, 10, -100, +100));
return new PropertyCollection(props);
}
示例11: OnCreatePropertyCollection
protected override PropertyCollection OnCreatePropertyCollection()
{
List<Property> props = new List<Property>();
props.Add(new Int32Property(PropertyNames.Hue, 0, -180, +180));
props.Add(new Int32Property(PropertyNames.Saturation, 100, 0, 200));
props.Add(new Int32Property(PropertyNames.Lightness, 0, -100, +100));
return new PropertyCollection(props);
}
示例12: OnCreatePropertyCollection
protected override PropertyCollection OnCreatePropertyCollection()
{
List<Property> props = new List<Property>();
props.Add(new DoubleProperty(PropertyNames.Rotation, 30, -180, +180));
props.Add(new DoubleProperty(PropertyNames.SquareSize, 40, 1, 800));
props.Add(new DoubleProperty(PropertyNames.Curvature, 8, -100, 100));
props.Add(new Int32Property(PropertyNames.Quality, 2, 1, 5));
return new PropertyCollection(props);
}
示例13: OnCreatePropertyCollection
protected override PropertyCollection OnCreatePropertyCollection()
{
List<Property> props = new List<Property>();
props.Add(new DoubleProperty(PropertyNames.MaxScatterRadius, 3.0, 0.0, 200.0));
props.Add(new DoubleProperty(PropertyNames.MinScatterRadius, 0.0, 0.0, 200.0));
props.Add(new Int32Property(PropertyNames.NumSamples, 2, 1, 8));
List<PropertyCollectionRule> propertyRules = new List<PropertyCollectionRule>();
propertyRules.Add(new SoftMutuallyBoundMinMaxRule<double, DoubleProperty>(PropertyNames.MinScatterRadius, PropertyNames.MaxScatterRadius));
PropertyCollection propertyCollection = new PropertyCollection(props, propertyRules);
return propertyCollection;
}
示例14: OnCreatePropertyCollection
protected override PropertyCollection OnCreatePropertyCollection()
{
List<Property> props = new List<Property>();
props.Add(new Int32Property(PropertyNames.Amount, 45, -200, 100));
props.Add(new DoubleVectorProperty(
PropertyNames.Offset,
Pair.Create(0.0, 0.0),
Pair.Create(-1.0, -1.0),
Pair.Create(1.0, 1.0)));
return new PropertyCollection(props);
}
示例15: OnCreateSavePropertyCollection
public override PropertyCollection OnCreateSavePropertyCollection()
{
List<Property> props = new List<Property>();
props.Add(StaticListChoiceProperty.CreateForEnum<BmpBitDepthUIChoices>(PropertyNames.BitDepth, BmpBitDepthUIChoices.AutoDetect, false));
props.Add(new Int32Property(PropertyNames.DitherLevel, 7, 0, 8));
List<PropertyCollectionRule> rules = new List<PropertyCollectionRule>();
rules.Add(new ReadOnlyBoundToValueRule<object, StaticListChoiceProperty>(PropertyNames.DitherLevel, PropertyNames.BitDepth, BmpBitDepthUIChoices.Bpp8, true));
PropertyCollection pc = new PropertyCollection(props, rules);
return pc;
}