コード例 #1
0
    void IAddChild.AddChild(object child)
    {
      if (child is Transform == false)
      {
        throw new ArgumentException(string.Format("must be of type {0}", this.GetType()));
      }

      if (_children == null)
      {
        _children = new TransformCollection();
      }

      _children.Add((Transform)child);
    }
コード例 #2
0
 public TransformGroup(TransformCollection transforms)
 {
     _children = transforms;
 }
コード例 #3
0
 public TransformGroup(TransformCollection transforms)
 {
   _children = transforms;
 }