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
- StylusButtonCollection.cs
- DataGridViewTextBoxCell.cs
- Size3DValueSerializer.cs
- TypedReference.cs
- RegexNode.cs
- NullNotAllowedCollection.cs
- TemplateApplicationHelper.cs
- IntermediatePolicyValidator.cs
- TextProperties.cs
- XpsInterleavingPolicy.cs
- ObjectItemCollectionAssemblyCacheEntry.cs
- InputBindingCollection.cs
- UpdatePanelTriggerCollection.cs
- TypeSource.cs
- IdentifierService.cs
- ApplicationFileCodeDomTreeGenerator.cs
- DictionaryEntry.cs
- DynamicILGenerator.cs
- SimpleTextLine.cs
- configsystem.cs
- ConsoleTraceListener.cs
- CompositeDataBoundControl.cs
- NullReferenceException.cs
- TemplateColumn.cs
- NativeMethods.cs
- SchemaElementLookUpTableEnumerator.cs
- SecurityTokenResolver.cs
- XsdDataContractExporter.cs
- NavigationWindow.cs
- AddInController.cs
- NotifyCollectionChangedEventArgs.cs
- ObjectDataSourceSelectingEventArgs.cs
- GradientStop.cs
- ElementHostPropertyMap.cs
- SHA1Managed.cs
- WorkflowDurableInstance.cs
- CommandHelper.cs
- FixedSOMLineRanges.cs
- ComponentSerializationService.cs
- RC2CryptoServiceProvider.cs
- PartialTrustValidationBehavior.cs
- DataRelation.cs
- ConstrainedDataObject.cs
- Substitution.cs
- SiteMapPath.cs
- PeekCompletedEventArgs.cs
- DataBoundControlAdapter.cs
- CatalogPartChrome.cs
- HostedNamedPipeTransportManager.cs
- ParallelLoopState.cs
- XmlWrappingReader.cs
- ServicesUtilities.cs
- OleTxTransactionInfo.cs
- InputLanguageSource.cs
- AppDomainFactory.cs
- UriPrefixTable.cs
- Environment.cs
- InkCanvasSelection.cs
- SecuritySessionServerSettings.cs
- DuplexChannelBinder.cs
- ServicePointManagerElement.cs
- SqlCommandSet.cs
- EventBookmark.cs
- MimeFormatter.cs
- XmlWriter.cs
- RuntimeCompatibilityAttribute.cs
- AccessDataSourceView.cs
- __Filters.cs
- HybridDictionary.cs
- CollectionAdapters.cs
- ellipse.cs
- ForceCopyBuildProvider.cs
- DataListItemEventArgs.cs
- EntityCommandDefinition.cs
- WorkflowQueue.cs
- ListItemCollection.cs
- HttpCacheVary.cs
- FormatterConverter.cs
- ParseHttpDate.cs
- UrlPropertyAttribute.cs
- ChameleonKey.cs
- ObjectDesignerDataSourceView.cs
- RoutingConfiguration.cs
- SystemColors.cs
- SharedUtils.cs
- ToolboxComponentsCreatedEventArgs.cs
- SmtpException.cs
- DataTemplateKey.cs
- XmlIterators.cs
- Typography.cs
- dataSvcMapFileLoader.cs
- PathFigureCollectionConverter.cs
- PackageRelationship.cs
- TextDecorationUnitValidation.cs
- LinkClickEvent.cs
- FusionWrap.cs
- MethodExpr.cs
- HtmlButton.cs
- AsymmetricSignatureFormatter.cs
- CapabilitiesState.cs