public override object EditValue(ITypeDescriptorContext context,
                                         IServiceProvider provider, object value)
        {
            if (provider == null)
            {
                return(value);
            }

            IWindowsFormsEditorService service =
                (IWindowsFormsEditorService)provider.GetService(typeof(IWindowsFormsEditorService));

            if (service == null)
            {
                return(value);
            }

            AlignmentUI ui = new AlignmentUI(this, service, value);

            service.DropDownControl(ui);

            return(ui.Value);
        }
		public override object EditValue (ITypeDescriptorContext context,
			IServiceProvider provider, object value)
		{
			if (provider == null)
				return value;

			IWindowsFormsEditorService service =
				(IWindowsFormsEditorService)provider.GetService (typeof (IWindowsFormsEditorService));
			if (service == null)
				return value;

			AlignmentUI ui = new AlignmentUI (this, service, value);
			service.DropDownControl (ui);

			return ui.Value;
		}