Code:
/ DotNET / DotNET / 8.0 / untmp / whidbey / REDBITS / ndp / fx / src / WinForms / Managed / System / WinForms / Design / WinFormsComponentEditor.cs / 1 / WinFormsComponentEditor.cs
//------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------------------- /* */ namespace System.Windows.Forms.Design { using System.ComponentModel; using System.Diagnostics; using System; using System.Windows.Forms; using System.ComponentModel.Design; using System.Drawing; using Microsoft.Win32; ////// /// [System.Security.Permissions.PermissionSetAttribute(System.Security.Permissions.SecurityAction.InheritanceDemand, Name="FullTrust")] public abstract class WindowsFormsComponentEditor : ComponentEditor { ///Provides a base class for editors that support any type /// of ////// objects. /// /// public override bool EditComponent(ITypeDescriptorContext context, object component){ return EditComponent(context, component, null); } ///Activates a UI used to edit the component. ////// /// public bool EditComponent(object component, IWin32Window owner) { return EditComponent(null, component, owner); } ////// Activates the advanced UI used to edit the component. ////// /// public virtual bool EditComponent(ITypeDescriptorContext context, object component, IWin32Window owner) { bool changed = false; Type[] pageControlTypes = GetComponentEditorPages(); if ((pageControlTypes != null) && (pageControlTypes.Length != 0)) { ComponentEditorForm form = new ComponentEditorForm(component, pageControlTypes); if (form.ShowForm(owner, GetInitialComponentEditorPageIndex()) == DialogResult.OK) changed = true; } return changed; } ////// Activates the advanced UI used to edit the component. ////// /// protected virtual Type[] GetComponentEditorPages() { return null; } ///Gets the set of ///pages to be used. /// /// protected virtual int GetInitialComponentEditorPageIndex() { return 0; } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. // Copyright (c) Microsoft Corporation. All rights reserved.Gets the index of the ///to be shown by default as the /// first active page.
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- regiisutil.cs
- OleDbEnumerator.cs
- ObjectResult.cs
- Root.cs
- Int16Animation.cs
- PeerChannelFactory.cs
- RequestQueryParser.cs
- CompilerWrapper.cs
- GorillaCodec.cs
- ColumnBinding.cs
- IImplicitResourceProvider.cs
- HttpHandlerActionCollection.cs
- ParenthesizePropertyNameAttribute.cs
- Rect3DValueSerializer.cs
- NameValueConfigurationElement.cs
- EnumValAlphaComparer.cs
- StringAnimationBase.cs
- ExpressionBuilder.cs
- Polygon.cs
- CellPartitioner.cs
- ConfigDefinitionUpdates.cs
- TabControl.cs
- COM2ExtendedUITypeEditor.cs
- DataSourceCacheDurationConverter.cs
- CqlParser.cs
- PrintController.cs
- SafeWaitHandle.cs
- UserControl.cs
- ConstrainedDataObject.cs
- GenericEnumerator.cs
- Solver.cs
- Effect.cs
- ContainerSelectorGlyph.cs
- ProxyWebPartManager.cs
- LayoutUtils.cs
- XamlSerializer.cs
- ObjectDisposedException.cs
- ImageDesigner.cs
- SectionRecord.cs
- Array.cs
- DefaultValueAttribute.cs
- MediaTimeline.cs
- CodeIdentifier.cs
- CounterCreationDataConverter.cs
- WebPartChrome.cs
- StateRuntime.cs
- Panel.cs
- SQLString.cs
- PointAnimation.cs
- AffineTransform3D.cs
- ItemChangedEventArgs.cs
- PeerUnsafeNativeCryptMethods.cs
- XMLSchema.cs
- DataAccessor.cs
- WebAdminConfigurationHelper.cs
- SecurityVersion.cs
- CommentEmitter.cs
- FigureParagraph.cs
- CancellationHandler.cs
- UInt32Converter.cs
- SiteMapSection.cs
- XamlBrushSerializer.cs
- OleDbStruct.cs
- BufferAllocator.cs
- SqlInternalConnectionSmi.cs
- ConfigurationPropertyCollection.cs
- UInt32Converter.cs
- GAC.cs
- SoapFault.cs
- ConfigurationErrorsException.cs
- XmlExtensionFunction.cs
- TextContainerHelper.cs
- HtmlPageAdapter.cs
- FastPropertyAccessor.cs
- CodeGotoStatement.cs
- ProcessModule.cs
- WebPart.cs
- ReferentialConstraint.cs
- Span.cs
- FixUp.cs
- SortableBindingList.cs
- ImageSource.cs
- AnnotationResourceCollection.cs
- HttpHandlerActionCollection.cs
- DataGridRow.cs
- ProfileInfo.cs
- DataObjectAttribute.cs
- HashFinalRequest.cs
- DrawingServices.cs
- UnauthorizedAccessException.cs
- FontConverter.cs
- Effect.cs
- HandleRef.cs
- DtcInterfaces.cs
- MDIWindowDialog.cs
- CodeGeneratorOptions.cs
- EntityCommandExecutionException.cs
- ToolTipAutomationPeer.cs
- CommunicationObjectFaultedException.cs
- TextRangeAdaptor.cs