Code:
/ FX-1434 / FX-1434 / 1.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
- X509SecurityTokenParameters.cs
- NativeMethods.cs
- CodeMethodInvokeExpression.cs
- SmtpSpecifiedPickupDirectoryElement.cs
- SHA1Managed.cs
- ProvidePropertyAttribute.cs
- CheckBox.cs
- SecurityTokenSerializer.cs
- GeneralTransformGroup.cs
- SQLCharsStorage.cs
- Timer.cs
- Translator.cs
- HandleCollector.cs
- Logging.cs
- PriorityItem.cs
- OdbcHandle.cs
- FormatterServices.cs
- RowsCopiedEventArgs.cs
- Adorner.cs
- GrowingArray.cs
- UrlParameterWriter.cs
- SelectionUIHandler.cs
- TiffBitmapEncoder.cs
- SafeNativeMethods.cs
- DropSource.cs
- DataGridViewLinkCell.cs
- NamespaceInfo.cs
- SettingsProviderCollection.cs
- BaseDataBoundControlDesigner.cs
- DrawingGroup.cs
- NonceToken.cs
- PropertyConverter.cs
- FormatterConverter.cs
- _SpnDictionary.cs
- XslTransform.cs
- InfoCardSymmetricCrypto.cs
- DelegatingConfigHost.cs
- Int32Collection.cs
- MultiPageTextView.cs
- MasterPageCodeDomTreeGenerator.cs
- xsdvalidator.cs
- LogicalMethodInfo.cs
- QueryResult.cs
- HyperLink.cs
- BaseDataList.cs
- HtmlInputReset.cs
- SafeWaitHandle.cs
- ExcCanonicalXml.cs
- ScrollChangedEventArgs.cs
- Stackframe.cs
- HttpHandlersSection.cs
- dbenumerator.cs
- BrowsableAttribute.cs
- OleDbStruct.cs
- Expression.cs
- XmlILStorageConverter.cs
- XmlObjectSerializerReadContextComplex.cs
- ProfilePropertySettings.cs
- ColumnResult.cs
- CompositeScriptReference.cs
- SystemThemeKey.cs
- EnvironmentPermission.cs
- InstanceCompleteException.cs
- VideoDrawing.cs
- TemplatePartAttribute.cs
- CompilationSection.cs
- WCFModelStrings.Designer.cs
- HiddenField.cs
- CodeSnippetTypeMember.cs
- Soap12FormatExtensions.cs
- HistoryEventArgs.cs
- CodeMethodReturnStatement.cs
- Triplet.cs
- GlobalizationAssembly.cs
- EntityDataSourceContextDisposingEventArgs.cs
- AuthenticateEventArgs.cs
- StringOutput.cs
- EventProxy.cs
- CodeArrayIndexerExpression.cs
- CollectionViewGroupRoot.cs
- XXXInfos.cs
- EventLogReader.cs
- safelink.cs
- XPathNodeInfoAtom.cs
- CompareInfo.cs
- loginstatus.cs
- SelectionList.cs
- XmlSchemaSimpleTypeUnion.cs
- DeflateStream.cs
- ToolboxItem.cs
- Point3DCollectionValueSerializer.cs
- ViewSimplifier.cs
- basecomparevalidator.cs
- CodeIterationStatement.cs
- PropertyEmitter.cs
- AsyncResult.cs
- __Error.cs
- ISAPIApplicationHost.cs
- XPathNavigatorKeyComparer.cs
- ToolStripItem.cs