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
- ObjectDataSourceEventArgs.cs
- XPathPatternBuilder.cs
- xamlnodes.cs
- BatchParser.cs
- TypeTypeConverter.cs
- AppDomainUnloadedException.cs
- _ListenerAsyncResult.cs
- JavascriptCallbackResponseProperty.cs
- GreenMethods.cs
- ISessionStateStore.cs
- QueryValue.cs
- PseudoWebRequest.cs
- EntityViewGenerationAttribute.cs
- CopyCodeAction.cs
- DBAsyncResult.cs
- WithStatement.cs
- SqlConnectionHelper.cs
- DataTableReaderListener.cs
- LiteralSubsegment.cs
- xml.cs
- dsa.cs
- DragStartedEventArgs.cs
- UnsafeNativeMethods.cs
- AsynchronousChannelMergeEnumerator.cs
- GCHandleCookieTable.cs
- StaticResourceExtension.cs
- AnnotationHighlightLayer.cs
- XmlAnyElementAttribute.cs
- ProfessionalColorTable.cs
- ControlDesignerState.cs
- ToolStripOverflow.cs
- NamespaceDisplay.xaml.cs
- HttpConfigurationContext.cs
- CompiledELinqQueryState.cs
- RetrieveVirtualItemEventArgs.cs
- Point3DCollection.cs
- HttpWriter.cs
- BridgeDataReader.cs
- ProbeRequestResponseAsyncResult.cs
- DesignerDeviceConfig.cs
- HttpPostedFileWrapper.cs
- X509CertificateTokenFactoryCredential.cs
- _KerberosClient.cs
- Timer.cs
- ConfigurationErrorsException.cs
- PngBitmapDecoder.cs
- MemberRelationshipService.cs
- SecurityDocument.cs
- Page.cs
- ErrorInfoXmlDocument.cs
- controlskin.cs
- FormsAuthenticationUser.cs
- OdbcCommandBuilder.cs
- SmiTypedGetterSetter.cs
- WorkflowApplicationAbortedEventArgs.cs
- Win32Exception.cs
- PageRanges.cs
- NoneExcludedImageIndexConverter.cs
- XsltFunctions.cs
- XNodeNavigator.cs
- ObfuscateAssemblyAttribute.cs
- XmlSerializerNamespaces.cs
- RuleValidation.cs
- ConfigurationStrings.cs
- DocumentViewerBaseAutomationPeer.cs
- RemoteWebConfigurationHost.cs
- MeshGeometry3D.cs
- UdpSocket.cs
- MarkupCompilePass1.cs
- HttpResponseHeader.cs
- ThreadStartException.cs
- ContentFileHelper.cs
- Polyline.cs
- CryptoHandle.cs
- VisualStyleInformation.cs
- CannotUnloadAppDomainException.cs
- DataView.cs
- DeferredReference.cs
- ConnectionConsumerAttribute.cs
- StorageModelBuildProvider.cs
- QilNode.cs
- BuildResultCache.cs
- StreamWithDictionary.cs
- X509ScopedServiceCertificateElementCollection.cs
- CompiledRegexRunner.cs
- DocumentReferenceCollection.cs
- EventLogStatus.cs
- DbDataReader.cs
- ToggleButtonAutomationPeer.cs
- SimpleTextLine.cs
- Soap12ProtocolImporter.cs
- OrderByExpression.cs
- SafeHandles.cs
- CryptographicAttribute.cs
- NullableDoubleSumAggregationOperator.cs
- HybridObjectCache.cs
- SQLUtility.cs
- MobileControlPersister.cs
- ContextProperty.cs
- SQLChars.cs