Code:
/ DotNET / DotNET / 8.0 / untmp / whidbey / REDBITS / ndp / fx / src / Designer / WebForms / System / Web / UI / Design / WebControls / TreeNodeCollectionEditor.cs / 1 / TreeNodeCollectionEditor.cs
//------------------------------------------------------------------------------ ////// Copyright (c) Microsoft Corporation. All Rights Reserved. /// Information Contained Herein is Proprietary and Confidential. /// //----------------------------------------------------------------------------- namespace System.Web.UI.Design.WebControls { using System; using System.Collections; using System.ComponentModel; using System.ComponentModel.Design; using System.Design; using System.Diagnostics; using System.Drawing; using System.Drawing.Design; using System.Runtime.InteropServices; using System.Web.UI.Design.Util; using System.Web.UI.WebControls; using System.Windows.Forms; using System.Windows.Forms.Design; using WebTreeNode = System.Web.UI.WebControls.TreeNode; using WebTreeNodeCollection = System.Web.UI.WebControls.TreeNodeCollection; using WebTreeView = System.Web.UI.WebControls.TreeView; ////// /// The editor for tree nodes collection in the TreeView. /// public class TreeNodeCollectionEditor : UITypeEditor { ///public override object EditValue(ITypeDescriptorContext context, IServiceProvider provider, object value) { IDesignerHost designerHost = (IDesignerHost)context.GetService(typeof(IDesignerHost)); Debug.Assert(designerHost != null, "Didn't get a DesignerHost."); Debug.Assert(context.Instance is WebTreeView, "Expected System.Web.UI.WebControls.TreeView"); WebTreeView treeView = (WebTreeView)context.Instance; TreeViewDesigner designer = (TreeViewDesigner)designerHost.GetDesigner(treeView); Debug.Assert(designer != null, "Didn't get a designer."); designer.InvokeTreeNodeCollectionEditor(); return value; } /// public override UITypeEditorEditStyle GetEditStyle(ITypeDescriptorContext context) { return UITypeEditorEditStyle.Modal; } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. // Copyright (c) Microsoft Corporation. All rights reserved.
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- FrameworkTextComposition.cs
- WebServiceEndpoint.cs
- CharacterShapingProperties.cs
- Highlights.cs
- ValueProviderWrapper.cs
- TransactionProtocolConverter.cs
- CellConstantDomain.cs
- TrackingServices.cs
- DbConnectionPoolGroupProviderInfo.cs
- DbReferenceCollection.cs
- WindowsPen.cs
- OdbcDataAdapter.cs
- WindowsGraphicsWrapper.cs
- XmlCompatibilityReader.cs
- ReverseComparer.cs
- Comparer.cs
- FileLogRecordHeader.cs
- odbcmetadatacollectionnames.cs
- CommentEmitter.cs
- ArcSegment.cs
- ViewStateException.cs
- ListItemCollection.cs
- WebPartMinimizeVerb.cs
- DataGridColumnReorderingEventArgs.cs
- TextSegment.cs
- Match.cs
- OleDbException.cs
- ObjectAnimationUsingKeyFrames.cs
- SqlBulkCopyColumnMappingCollection.cs
- WaitHandle.cs
- Compiler.cs
- UrlMappingsModule.cs
- ListItemCollection.cs
- XmlSchemaComplexContent.cs
- ContentElement.cs
- Pair.cs
- XmlText.cs
- KeyValueInternalCollection.cs
- DictionaryBase.cs
- ConfigurationManagerHelperFactory.cs
- XXXInfos.cs
- UriTemplateQueryValue.cs
- SoapAttributeOverrides.cs
- DataGridState.cs
- RichTextBoxAutomationPeer.cs
- ThicknessAnimationUsingKeyFrames.cs
- WmlTextViewAdapter.cs
- StylusPointPropertyInfoDefaults.cs
- BookmarkUndoUnit.cs
- TypedReference.cs
- FirstQueryOperator.cs
- StateMachineAction.cs
- MsmqAppDomainProtocolHandler.cs
- GeneralTransform3DCollection.cs
- CachedPathData.cs
- ItemCheckEvent.cs
- XmlObjectSerializer.cs
- ProxyDataContractResolver.cs
- FileEnumerator.cs
- DbParameterHelper.cs
- TrackBar.cs
- WindowsScrollBar.cs
- ContentElement.cs
- ClientSession.cs
- _LoggingObject.cs
- ImageSourceConverter.cs
- PeerNameResolver.cs
- PtsCache.cs
- ComponentGuaranteesAttribute.cs
- PropertyDescriptorCollection.cs
- QilLiteral.cs
- PriorityChain.cs
- ErrorRuntimeConfig.cs
- RefreshEventArgs.cs
- DataColumnMappingCollection.cs
- ControlValuePropertyAttribute.cs
- SimpleHandlerFactory.cs
- Point3D.cs
- CircleHotSpot.cs
- COM2ExtendedBrowsingHandler.cs
- SQLRoleProvider.cs
- ConnectionStringEditor.cs
- XmlRawWriterWrapper.cs
- WmfPlaceableFileHeader.cs
- RetrieveVirtualItemEventArgs.cs
- SpeechRecognitionEngine.cs
- WriteFileContext.cs
- MouseButton.cs
- ValueQuery.cs
- UIElement3D.cs
- CFStream.cs
- AppSettings.cs
- EventMappingSettings.cs
- XmlSchemaObjectCollection.cs
- ListView.cs
- WindowPatternIdentifiers.cs
- UIElementAutomationPeer.cs
- DuplicateWaitObjectException.cs
- Bold.cs
- WindowsListViewGroupHelper.cs