public void _initLabel(ILabel nlabel) { base._initRect(nlabel); base._setLabelShape(this); mLabel = nlabel; ShapeDescriptorSingleton shapeDescriptorSingleton_ = __singleton<ShapeDescriptorSingleton>._instance(); mLabelStream = shapeDescriptorSingleton_._labelDescriptor(nlabel._styleName()); List<IRect> rects_ = nlabel._getRects(); if (null == rects_) { return; } int index_ = 0; foreach (IRect i in rects_) { RectShape rect_ = new RectShape(); rect_._initRect(i); rect_._setLabelShape(this); rect_._setIndex(index_); mRectShapes.Add(rect_); index_++; } }