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
- WpfKnownMember.cs
- AddInToken.cs
- AdvancedBindingPropertyDescriptor.cs
- SQLDouble.cs
- BitmapPalette.cs
- MaskedTextBox.cs
- DataErrorValidationRule.cs
- SignalGate.cs
- DESCryptoServiceProvider.cs
- CodeIndexerExpression.cs
- Math.cs
- ImageBrush.cs
- HorizontalAlignConverter.cs
- ApplicationServiceManager.cs
- CodeMemberMethod.cs
- EntityConnection.cs
- MatrixAnimationUsingPath.cs
- FrameSecurityDescriptor.cs
- Security.cs
- QilReplaceVisitor.cs
- RecognizedWordUnit.cs
- WorkItem.cs
- Exceptions.cs
- ObjectView.cs
- IntegerValidator.cs
- PersianCalendar.cs
- SqlErrorCollection.cs
- TdsParameterSetter.cs
- OracleTimeSpan.cs
- EntityViewGenerationAttribute.cs
- MessageQueuePermissionAttribute.cs
- StateMachineExecutionState.cs
- InnerItemCollectionView.cs
- PriorityRange.cs
- BaseCAMarshaler.cs
- BamlResourceSerializer.cs
- CanonicalFontFamilyReference.cs
- SecurityDescriptor.cs
- CellRelation.cs
- ManageRequest.cs
- KeyValuePair.cs
- Control.cs
- ToolZone.cs
- ServiceDefaults.cs
- DeploymentSectionCache.cs
- X509Chain.cs
- FrameSecurityDescriptor.cs
- ReadOnlyHierarchicalDataSource.cs
- EntityDataSourceDataSelectionPanel.cs
- ModelChangedEventArgsImpl.cs
- FontFamilyIdentifier.cs
- CoTaskMemHandle.cs
- FileLoadException.cs
- CoTaskMemSafeHandle.cs
- FixedHighlight.cs
- BamlRecordHelper.cs
- StandardRuntimeEnumValidator.cs
- KeySpline.cs
- SystemInfo.cs
- CellConstantDomain.cs
- DLinqDataModelProvider.cs
- OleDbPermission.cs
- TryExpression.cs
- VisualStyleRenderer.cs
- ValueProviderWrapper.cs
- AxHost.cs
- Soap.cs
- VectorCollectionConverter.cs
- ZipIORawDataFileBlock.cs
- ContentTextAutomationPeer.cs
- SerTrace.cs
- UriExt.cs
- Marshal.cs
- NegotiationTokenProvider.cs
- DataChangedEventManager.cs
- FamilyTypefaceCollection.cs
- OutgoingWebResponseContext.cs
- XamlFrame.cs
- HtmlControlPersistable.cs
- Int16Animation.cs
- NullableDoubleSumAggregationOperator.cs
- NamedPermissionSet.cs
- AppSettingsExpressionBuilder.cs
- FrameworkElement.cs
- SqlMethodCallConverter.cs
- StyleReferenceConverter.cs
- TextTrailingWordEllipsis.cs
- ZipIOExtraFieldPaddingElement.cs
- ListViewGroupItemCollection.cs
- TrackingAnnotationCollection.cs
- Int32Rect.cs
- DummyDataSource.cs
- CDSCollectionETWBCLProvider.cs
- streamingZipPartStream.cs
- TemplateControl.cs
- KnownBoxes.cs
- ClientFormsIdentity.cs
- DayRenderEvent.cs
- VisualState.cs
- Validator.cs