Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / whidbey / NetFxQFE / ndp / fx / src / WinForms / Managed / System / WinForms / DrawTreeNodeEventArgs.cs / 1 / DrawTreeNodeEventArgs.cs
//------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------------------- namespace System.Windows.Forms { using System.Diagnostics; using System; using System.ComponentModel; using System.Drawing; using Microsoft.Win32; using System.Windows.Forms.VisualStyles; ////// /// This class contains the information a user needs to paint TreeView nodes. /// public class DrawTreeNodeEventArgs : EventArgs { private readonly Graphics graphics; private readonly TreeNode node; private readonly Rectangle bounds; private readonly TreeNodeStates state; private bool drawDefault; ////// /// Creates a new DrawTreeNodeEventArgs with the given parameters. /// public DrawTreeNodeEventArgs(Graphics graphics, TreeNode node, Rectangle bounds, TreeNodeStates state) { this.graphics = graphics; this.node = node; this.bounds = bounds; this.state = state; this.drawDefault = false; } ////// /// Causes the item do be drawn by the system instead of owner drawn. /// NOTE: In OwnerDrawText mode, setting this to true is same as calling DrawText. /// public bool DrawDefault { get { return drawDefault; } set { drawDefault = value; } } ////// /// Graphics object with which painting should be done. /// public Graphics Graphics { get { return graphics; } } ////// /// The node to be painted. /// public TreeNode Node { get { return node; } } ////// /// The rectangle outlining the area in which the painting should be done. /// public Rectangle Bounds { get { return bounds; } } ////// /// Miscellaneous state information. /// public TreeNodeStates State { get { return state; } } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. //------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------------------- namespace System.Windows.Forms { using System.Diagnostics; using System; using System.ComponentModel; using System.Drawing; using Microsoft.Win32; using System.Windows.Forms.VisualStyles; ////// /// This class contains the information a user needs to paint TreeView nodes. /// public class DrawTreeNodeEventArgs : EventArgs { private readonly Graphics graphics; private readonly TreeNode node; private readonly Rectangle bounds; private readonly TreeNodeStates state; private bool drawDefault; ////// /// Creates a new DrawTreeNodeEventArgs with the given parameters. /// public DrawTreeNodeEventArgs(Graphics graphics, TreeNode node, Rectangle bounds, TreeNodeStates state) { this.graphics = graphics; this.node = node; this.bounds = bounds; this.state = state; this.drawDefault = false; } ////// /// Causes the item do be drawn by the system instead of owner drawn. /// NOTE: In OwnerDrawText mode, setting this to true is same as calling DrawText. /// public bool DrawDefault { get { return drawDefault; } set { drawDefault = value; } } ////// /// Graphics object with which painting should be done. /// public Graphics Graphics { get { return graphics; } } ////// /// The node to be painted. /// public TreeNode Node { get { return node; } } ////// /// The rectangle outlining the area in which the painting should be done. /// public Rectangle Bounds { get { return bounds; } } ////// /// Miscellaneous state information. /// public TreeNodeStates State { get { return state; } } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007.
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- ControlCodeDomSerializer.cs
- XmlQualifiedNameTest.cs
- SoapAttributeAttribute.cs
- NativeObjectSecurity.cs
- DateTimeOffsetStorage.cs
- SupportingTokenBindingElement.cs
- EditorZoneBase.cs
- SqlCacheDependencyDatabaseCollection.cs
- TrackingMemoryStreamFactory.cs
- StateDesigner.Helpers.cs
- SafeRightsManagementHandle.cs
- StorageEntitySetMapping.cs
- Switch.cs
- _TransmitFileOverlappedAsyncResult.cs
- NativeWrapper.cs
- PrivateFontCollection.cs
- ObjectHelper.cs
- EdmFunction.cs
- RichTextBox.cs
- ObjectViewEntityCollectionData.cs
- x509utils.cs
- IODescriptionAttribute.cs
- PackageRelationshipCollection.cs
- PlainXmlDeserializer.cs
- SqlProfileProvider.cs
- XmlDomTextWriter.cs
- ListViewDeleteEventArgs.cs
- BaseServiceProvider.cs
- FollowerQueueCreator.cs
- TreeBuilderXamlTranslator.cs
- FrameworkElement.cs
- NetMsmqBindingCollectionElement.cs
- ElementMarkupObject.cs
- ConstrainedDataObject.cs
- MasterPageCodeDomTreeGenerator.cs
- MultipartIdentifier.cs
- IdentityHolder.cs
- DocumentViewerHelper.cs
- ServerProtocol.cs
- StringResourceManager.cs
- PageFunction.cs
- XmlDataSourceNodeDescriptor.cs
- ItemDragEvent.cs
- XmlEntity.cs
- TextDecoration.cs
- MsmqIntegrationSecurity.cs
- QfeChecker.cs
- TaskCanceledException.cs
- ToolStripGrip.cs
- WebResponse.cs
- HtmlProps.cs
- TextOptionsInternal.cs
- HostExecutionContextManager.cs
- ImageConverter.cs
- ExtentCqlBlock.cs
- CodeNamespaceImport.cs
- EntityProviderServices.cs
- PipelineModuleStepContainer.cs
- IgnoreDeviceFilterElement.cs
- TypeUnloadedException.cs
- DataSpaceManager.cs
- DependsOnAttribute.cs
- RIPEMD160.cs
- SoundPlayer.cs
- SystemException.cs
- HttpApplicationStateWrapper.cs
- M3DUtil.cs
- AliasGenerator.cs
- DistributedTransactionPermission.cs
- SchemaAttDef.cs
- MoveSizeWinEventHandler.cs
- RoutedEvent.cs
- WebControl.cs
- AutomationIdentifier.cs
- TreeViewBindingsEditor.cs
- PropertyGridDesigner.cs
- EnlistmentTraceIdentifier.cs
- VariableQuery.cs
- DivideByZeroException.cs
- NegotiateStream.cs
- XmlRootAttribute.cs
- TableNameAttribute.cs
- SystemIPGlobalProperties.cs
- GrammarBuilderWildcard.cs
- MarginsConverter.cs
- ExtensionMethods.cs
- SmiMetaDataProperty.cs
- OwnerDrawPropertyBag.cs
- PeerTransportListenAddressValidatorAttribute.cs
- HttpListenerPrefixCollection.cs
- SoapIgnoreAttribute.cs
- Brush.cs
- ExpressionValueEditor.cs
- SingleStorage.cs
- MetadataArtifactLoaderFile.cs
- LoginDesigner.cs
- DmlSqlGenerator.cs
- FunctionImportElement.cs
- Propagator.JoinPropagator.JoinPredicateVisitor.cs
- WebErrorHandler.cs