public virtual RectShape CreateRectangle() { RectShape newRect = new RectShape(); newRect.Style.FillStyleInfo = BackgroundStyle; newRect.Style.LineStyleInfo = BorderStyle; return newRect; }
void InitControl() { MyShapeControl = new RectShape(); MyShapeControl.Size.Set( MyShapeControl.Style.FontStyleInfo.Font.SpaceCharSize.X, MyShapeControl.Style.FontStyleInfo.Font.SpaceCharSize.Y); MyShapeControl.Layout(); }