/// <summary> /// Add a bracket for this Sgroup. /// </summary> /// <param name="bracket">sgroup bracket</param> public void AddBracket(SgroupBracket bracket) { var brackets = (IList <SgroupBracket>)GetValue(SgroupKey.CtabBracket); if (brackets == null) { brackets = new List <SgroupBracket>(2); PutValue(SgroupKey.CtabBracket, brackets); } brackets.Add(bracket); }
/// <summary> /// Copy constructor. /// </summary> /// <param name="org">original sgroup bracket</param> public SgroupBracket(SgroupBracket org) : this(org.p1.X, org.p1.Y, org.p2.X, org.p2.Y) { }