Exemple #1
0
        protected override PropertyCollection OnCreatePropertyCollection()
        {
            Property[] props = new Property[]
            {
                new StringProperty(PropertyNames.Text, "", 255),
                new Int32Property(PropertyNames.TextRepeat, 100, 1, 1000),
                new Int32Property(PropertyNames.FontSize, 12, 6, 250),
                new StaticListChoiceProperty(PropertyNames.Font, FontUtil.UsableFontFamilies, FontUtil.FindFontIndex("Arial"), false),
                new BooleanProperty(PropertyNames.Bold, false),
                new BooleanProperty(PropertyNames.Italic, false),
                new BooleanProperty(PropertyNames.Underline, false),
                new BooleanProperty(PropertyNames.Strikeout, false),
                new DoubleVectorProperty(PropertyNames.Offset, Pair.Create(0.0, 0.0), Pair.Create(-1.0, -1.0), Pair.Create(+1.0, +1.0)),
                new Int32Property(PropertyNames.BackColor, ColorBgra.ToOpaqueInt32(ColorBgra.FromBgra(EnvironmentParameters.PrimaryColor.B, EnvironmentParameters.PrimaryColor.G, EnvironmentParameters.PrimaryColor.R, 255)), 0, 0xffffff)
            };

            return(new PropertyCollection(props));
        }
Exemple #2
0
        protected override PropertyCollection OnCreatePropertyCollection()
        {
            List <Property> props = new List <Property>
            {
                new StringProperty(PropertyNames.Amount1, "", 10000),
                new Int32Property(PropertyNames.Amount2, 100, 1, 1000),
                new Int32Property(PropertyNames.Amount3, 12, 6, 250),
                new StaticListChoiceProperty(PropertyNames.Amount4, FontUtil.UsableFontFamilies, FontUtil.FindFontIndex("Arial"), false),
                new BooleanProperty(PropertyNames.Amount5, false),
                new BooleanProperty(PropertyNames.Amount6, false),
                new BooleanProperty(PropertyNames.Amount7, false),
                new BooleanProperty(PropertyNames.Amount8, false),
                new DoubleVectorProperty(PropertyNames.Amount9, Pair.Create(0.0, 0.0), Pair.Create(-1.0, -1.0), Pair.Create(+1.0, +1.0)),
                new Int32Property(PropertyNames.Amount10, ColorBgra.ToOpaqueInt32(ColorBgra.FromBgra(EnvironmentParameters.PrimaryColor.B, EnvironmentParameters.PrimaryColor.G, EnvironmentParameters.PrimaryColor.R, 255)), 0, 0xffffff)
            };

            return(new PropertyCollection(props));
        }