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
- DataBinder.cs
- WebChannelFactory.cs
- SamlEvidence.cs
- TransactionManagerProxy.cs
- RequiredAttributeAttribute.cs
- FileDataSourceCache.cs
- AppendHelper.cs
- HttpResponseMessageProperty.cs
- XmlCountingReader.cs
- LogManagementAsyncResult.cs
- ParentQuery.cs
- QilTypeChecker.cs
- SystemParameters.cs
- ConcurrentQueue.cs
- AsyncResult.cs
- ConfigXmlSignificantWhitespace.cs
- ObjectFactoryCodeDomTreeGenerator.cs
- QilBinary.cs
- InstancePersistence.cs
- TrackPoint.cs
- WebBrowserNavigatingEventHandler.cs
- HttpProtocolReflector.cs
- SmiRecordBuffer.cs
- XPathMultyIterator.cs
- ClusterUtils.cs
- GPPOINTF.cs
- CodeIdentifiers.cs
- DiscardableAttribute.cs
- DataKeyCollection.cs
- PassportAuthenticationEventArgs.cs
- DebugInfoExpression.cs
- BasePattern.cs
- MemoryStream.cs
- Tuple.cs
- HttpListenerRequestUriBuilder.cs
- SectionInformation.cs
- SourceFileBuildProvider.cs
- WindowsFormsHostPropertyMap.cs
- SecurityKeyIdentifier.cs
- COM2PropertyPageUITypeConverter.cs
- COM2ExtendedBrowsingHandler.cs
- DataTemplate.cs
- EtwTrace.cs
- ColorInterpolationModeValidation.cs
- DesignerTransaction.cs
- ObjectStateEntry.cs
- CatalogPartChrome.cs
- XmlValidatingReaderImpl.cs
- ButtonFlatAdapter.cs
- RsaKeyIdentifierClause.cs
- RepeatButton.cs
- RoleManagerEventArgs.cs
- RemotingAttributes.cs
- SmiEventStream.cs
- TextFindEngine.cs
- SapiAttributeParser.cs
- DataGridParentRows.cs
- FormClosedEvent.cs
- JsonCollectionDataContract.cs
- MatrixAnimationBase.cs
- StylusLogic.cs
- KeyMatchBuilder.cs
- DateTime.cs
- SQLGuid.cs
- TemplatedWizardStep.cs
- WithStatement.cs
- ByteArrayHelperWithString.cs
- OdbcFactory.cs
- SurrogateEncoder.cs
- RectAnimationBase.cs
- TabPage.cs
- HttpProfileBase.cs
- DateTimeConstantAttribute.cs
- SystemIcons.cs
- AutomationIdentifierGuids.cs
- SerialPort.cs
- DbQueryCommandTree.cs
- GradientStopCollection.cs
- SecurityPermission.cs
- CssTextWriter.cs
- XPathQilFactory.cs
- ActivationServices.cs
- IgnoreFileBuildProvider.cs
- ControlBuilderAttribute.cs
- dataprotectionpermission.cs
- SHA256Managed.cs
- AttachedPropertyDescriptor.cs
- CaretElement.cs
- Queue.cs
- PreservationFileWriter.cs
- BitmapCodecInfo.cs
- ToolStripTemplateNode.cs
- ElementHostAutomationPeer.cs
- ConnectionManager.cs
- FillRuleValidation.cs
- MetaModel.cs
- _NtlmClient.cs
- VectorValueSerializer.cs
- TemplatedWizardStep.cs
- DataFormats.cs