Code:
/ 4.0 / 4.0 / untmp / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / WinForms / Managed / System / WinForms / Design / WinFormsComponentEditor.cs / 1305376 / 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.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
- AuthenticationConfig.cs
- MetabaseServerConfig.cs
- Query.cs
- HandlerMappingMemo.cs
- BindingsCollection.cs
- ExpressionVisitor.cs
- CheckBoxFlatAdapter.cs
- XmlSchemaParticle.cs
- PixelShader.cs
- LOSFormatter.cs
- AuthenticationSchemesHelper.cs
- RegularExpressionValidator.cs
- NamespaceDecl.cs
- SizeLimitedCache.cs
- URIFormatException.cs
- DbParameterCollection.cs
- HwndStylusInputProvider.cs
- HttpHandlersSection.cs
- SqlFunctions.cs
- DbConvert.cs
- OrderedHashRepartitionStream.cs
- SpnEndpointIdentityExtension.cs
- OrderByQueryOptionExpression.cs
- MemberHolder.cs
- _ListenerResponseStream.cs
- DesignUtil.cs
- TreeViewHitTestInfo.cs
- ModelService.cs
- SqlBuilder.cs
- AddIn.cs
- JournalNavigationScope.cs
- _UncName.cs
- FileLevelControlBuilderAttribute.cs
- XmlSignificantWhitespace.cs
- ClientSession.cs
- File.cs
- SafeNativeMethods.cs
- DataGridViewCellCancelEventArgs.cs
- CollectionViewGroupRoot.cs
- DataGridViewSelectedCellsAccessibleObject.cs
- FileVersionInfo.cs
- StrokeNodeOperations.cs
- HttpRawResponse.cs
- DiffuseMaterial.cs
- BindingRestrictions.cs
- mediaeventargs.cs
- ExtendedProtectionPolicyTypeConverter.cs
- AssemblyBuilderData.cs
- TreeViewItem.cs
- UseAttributeSetsAction.cs
- ViewBase.cs
- GridViewPageEventArgs.cs
- Control.cs
- OrderByQueryOptionExpression.cs
- RsaSecurityKey.cs
- wmiprovider.cs
- Interfaces.cs
- PerformanceCounterManager.cs
- newitemfactory.cs
- MessageBox.cs
- WindowsListViewGroup.cs
- SerTrace.cs
- Site.cs
- TableHeaderCell.cs
- FixedPageAutomationPeer.cs
- FontSource.cs
- Console.cs
- CodeMemberField.cs
- WorkflowItemPresenter.cs
- StringToken.cs
- XmlLinkedNode.cs
- CodeGeneratorOptions.cs
- Model3DGroup.cs
- ProgressBarRenderer.cs
- WindowsScrollBarBits.cs
- BaseTemplateBuildProvider.cs
- ClickablePoint.cs
- GridViewRowPresenter.cs
- SystemIcmpV6Statistics.cs
- TableLayoutRowStyleCollection.cs
- HttpFormatExtensions.cs
- PageContentCollection.cs
- ListViewItem.cs
- PermissionToken.cs
- NamespaceInfo.cs
- ToolbarAUtomationPeer.cs
- EventLogTraceListener.cs
- ExpressionLexer.cs
- BookmarkUndoUnit.cs
- WebBrowserHelper.cs
- SpecialTypeDataContract.cs
- WorkflowApplicationAbortedEventArgs.cs
- Enum.cs
- CharacterBufferReference.cs
- HttpServerVarsCollection.cs
- SizeChangedInfo.cs
- DataColumn.cs
- PageStatePersister.cs
- _AutoWebProxyScriptHelper.cs
- ModelUIElement3D.cs