/// <summary> /// Inits this instance. /// </summary> protected void Init() { this.glyphShapesTable = new GlyphShapesTable(); this.fontBoundsTable = new RectCollection(); this.fontKerningTable = new KerningRecordCollection(); this.fontAdvanceTable = new ShortCollection(); _tagCode = (int)TagCodeEnum.DefineFont2; }
static void Main(string[] args) { List<string> myString = new List<string>(); myString.Add("1"); myString.Add("2"); myString.Add("3"); ShortCollection<string> myShort = new ShortCollection<string>(3,myString); Console.WriteLine("{0}",myShort.Capacity); myShort.Add("5"); Console.ReadKey(); }