public override Control ShowControl(Rectangle valueRect, PropertyEnumerator propEnum) { PropInPlaceFontButton button; if (mInPlaceCtrl == null) { button = new PropInPlaceFontButton(); button.Visible = false; button.Parent = mParentWnd; mInPlaceCtrl = button; } else { button = (PropInPlaceFontButton)mInPlaceCtrl; } NotifyInPlaceControlCreated(propEnum); button.Text = propEnum.Property.Value.DisplayString; button.OwnerPropertyEnumerator = propEnum; button.Font = propEnum.Property.Value.Font; MoveControl(valueRect, propEnum); return(base.ShowControl(valueRect, propEnum)); }
public override Control ShowControl(Rectangle valueRect, PropertyEnumerator propEnum) { PropInPlaceFontButton button; if (mInPlaceCtrl == null) { button = new PropInPlaceFontButton(); button.Visible = false; button.Parent = mParentWnd; mInPlaceCtrl = button; } else button = (PropInPlaceFontButton)mInPlaceCtrl; NotifyInPlaceControlCreated(propEnum); button.Text = propEnum.Property.Value.DisplayString; button.OwnerPropertyEnumerator = propEnum; button.Font = propEnum.Property.Value.Font; MoveControl(valueRect, propEnum); return base.ShowControl(valueRect, propEnum); }