Code:
/ FX-1434 / FX-1434 / 1.0 / untmp / whidbey / REDBITS / 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.
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- ListViewItemSelectionChangedEvent.cs
- IDQuery.cs
- TypeInfo.cs
- AddInController.cs
- FullTrustAssembliesSection.cs
- AsymmetricKeyExchangeDeformatter.cs
- ToolboxItemCollection.cs
- LinqDataSourceValidationException.cs
- RightsManagementEncryptedStream.cs
- RenamedEventArgs.cs
- PersonalizationStateInfo.cs
- SecurityTokenProviderContainer.cs
- SplitContainer.cs
- TypeResolver.cs
- Pens.cs
- SqlDataSourceSelectingEventArgs.cs
- UIElementCollection.cs
- StreamInfo.cs
- BufferedReadStream.cs
- SoapEnvelopeProcessingElement.cs
- CellParagraph.cs
- RangeValidator.cs
- CaseStatement.cs
- recordstatefactory.cs
- CSharpCodeProvider.cs
- BeginSelectCardRequest.cs
- Timeline.cs
- ServicesUtilities.cs
- SmiMetaDataProperty.cs
- StylusPointCollection.cs
- ClipboardProcessor.cs
- XmlComplianceUtil.cs
- TabletDevice.cs
- CodeObjectCreateExpression.cs
- ResourceDisplayNameAttribute.cs
- Line.cs
- DependentList.cs
- BitmapEncoder.cs
- XmlWrappingWriter.cs
- SqlCacheDependencyDatabase.cs
- DBConnectionString.cs
- GroupQuery.cs
- ProtocolProfile.cs
- CodeAccessSecurityEngine.cs
- CompilerGeneratedAttribute.cs
- QueryableDataSourceHelper.cs
- XmlSubtreeReader.cs
- EmptyStringExpandableObjectConverter.cs
- X509CertificateStore.cs
- MasterPageCodeDomTreeGenerator.cs
- ArcSegment.cs
- InputScopeNameConverter.cs
- FixedPosition.cs
- AliasedSlot.cs
- ProtocolsSection.cs
- HttpProcessUtility.cs
- LogRestartAreaEnumerator.cs
- DatatypeImplementation.cs
- ListBoxItemWrapperAutomationPeer.cs
- RestClientProxyHandler.cs
- HttpListenerResponse.cs
- BadImageFormatException.cs
- TextContainerChangeEventArgs.cs
- ImportCatalogPart.cs
- ControlParser.cs
- CurrencyWrapper.cs
- TextSelection.cs
- CharKeyFrameCollection.cs
- CharUnicodeInfo.cs
- WSTrustDec2005.cs
- WindowsSlider.cs
- ScriptResourceAttribute.cs
- HttpServerVarsCollection.cs
- SchemaNotation.cs
- InheritanceContextChangedEventManager.cs
- DragEventArgs.cs
- NotificationContext.cs
- HostProtectionException.cs
- Stream.cs
- FrugalMap.cs
- XamlFrame.cs
- SchemaTableColumn.cs
- DataBindingList.cs
- CollectionChangedEventManager.cs
- AppearanceEditorPart.cs
- PeerUnsafeNativeMethods.cs
- MessageQueueCriteria.cs
- SetMemberBinder.cs
- TextRangeEdit.cs
- DataSourceXmlSubItemAttribute.cs
- DataBoundControlParameterTarget.cs
- SQLConvert.cs
- GenericRootAutomationPeer.cs
- RequestCacheManager.cs
- SchemaImporter.cs
- CachedTypeface.cs
- DbBuffer.cs
- AbsoluteQuery.cs
- Transform.cs
- IdentityHolder.cs