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
- ITextView.cs
- PEFileReader.cs
- OracleConnection.cs
- ActivityStateRecord.cs
- RestHandlerFactory.cs
- ControlBuilder.cs
- TextRangeEditTables.cs
- PersonalizationProvider.cs
- XamlSerializationHelper.cs
- CodeAttributeDeclarationCollection.cs
- Menu.cs
- SchemaMapping.cs
- Size.cs
- KeyedCollection.cs
- FactoryGenerator.cs
- WebPartVerbsEventArgs.cs
- smtpconnection.cs
- BitmapMetadataBlob.cs
- XPathEmptyIterator.cs
- PeerNode.cs
- InternalControlCollection.cs
- sqlcontext.cs
- ISAPIWorkerRequest.cs
- FixUpCollection.cs
- SrgsElementFactoryCompiler.cs
- FormViewCommandEventArgs.cs
- Point.cs
- TypeInitializationException.cs
- PersonalizableAttribute.cs
- SspiHelper.cs
- ExpressionBindings.cs
- XmlSequenceWriter.cs
- GeneratedView.cs
- KeySplineConverter.cs
- SamlAdvice.cs
- XmlConvert.cs
- Environment.cs
- ObjectViewEntityCollectionData.cs
- CodeMethodMap.cs
- AddInContractAttribute.cs
- TrackingRecord.cs
- RemotingAttributes.cs
- DataViewSettingCollection.cs
- XmlEnumAttribute.cs
- InputLanguageEventArgs.cs
- TypeNameHelper.cs
- RemotingHelper.cs
- Expression.cs
- EventSinkHelperWriter.cs
- Constraint.cs
- ServiceAuthorizationManager.cs
- CodeAttributeArgumentCollection.cs
- WindowsTitleBar.cs
- DataTemplateKey.cs
- rsa.cs
- COAUTHINFO.cs
- ListViewSortEventArgs.cs
- ConfigurationPropertyCollection.cs
- UnsafeNativeMethods.cs
- XmlCharacterData.cs
- RectAnimationClockResource.cs
- ToolStrip.cs
- TemplateControlParser.cs
- RectConverter.cs
- Int64Converter.cs
- ProxyGenerator.cs
- Identifier.cs
- _NativeSSPI.cs
- CompressionTransform.cs
- ToolStripPanelCell.cs
- PathGradientBrush.cs
- ProxySimple.cs
- MLangCodePageEncoding.cs
- InputScopeAttribute.cs
- WindowsAuthenticationModule.cs
- DispatcherProcessingDisabled.cs
- CodeExporter.cs
- XmlReader.cs
- Processor.cs
- SqlBulkCopyColumnMapping.cs
- DurableServiceAttribute.cs
- ReadOnlyDataSource.cs
- PrinterUnitConvert.cs
- WinFormsUtils.cs
- RelatedPropertyManager.cs
- EmptyElement.cs
- UInt32Storage.cs
- Models.cs
- Glyph.cs
- SemaphoreSecurity.cs
- GZipDecoder.cs
- XmlChildNodes.cs
- Mutex.cs
- SelectedGridItemChangedEvent.cs
- DataGridViewBand.cs
- NullableLongSumAggregationOperator.cs
- X509CertificateInitiatorClientCredential.cs
- Track.cs
- OracleMonthSpan.cs
- WindowsSlider.cs