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
- RTTrackingProfile.cs
- WorkflowPageSetupDialog.cs
- ConfigUtil.cs
- Tablet.cs
- SqlExpander.cs
- CodeConstructor.cs
- ByteFacetDescriptionElement.cs
- MetadataCacheItem.cs
- FixedSchema.cs
- SerializationBinder.cs
- DetailsViewInsertEventArgs.cs
- PartManifestEntry.cs
- HttpContext.cs
- EntityDataSourceEntityTypeFilterConverter.cs
- Overlapped.cs
- hresults.cs
- XmlnsDictionary.cs
- HwndMouseInputProvider.cs
- TemplateModeChangedEventArgs.cs
- ProgressiveCrcCalculatingStream.cs
- CharEntityEncoderFallback.cs
- ReadOnlyHierarchicalDataSourceView.cs
- HatchBrush.cs
- SystemKeyConverter.cs
- QuestionEventArgs.cs
- ExtractorMetadata.cs
- Pair.cs
- LookupTables.cs
- NGCPageContentCollectionSerializerAsync.cs
- AssociationType.cs
- ProcessHostMapPath.cs
- XmlQueryStaticData.cs
- BinaryExpression.cs
- Filter.cs
- DateTimeFormatInfo.cs
- UnsafeNativeMethods.cs
- SharedPerformanceCounter.cs
- ZipIOExtraField.cs
- BindingValueChangedEventArgs.cs
- EntityType.cs
- FollowerQueueCreator.cs
- ExtensionSimplifierMarkupObject.cs
- ThicknessAnimation.cs
- HotSpotCollectionEditor.cs
- ToolStripDropDownItem.cs
- BitmapSourceSafeMILHandle.cs
- CodeFieldReferenceExpression.cs
- KnownBoxes.cs
- Ref.cs
- RenamedEventArgs.cs
- SrgsDocument.cs
- NetStream.cs
- ToolStripComboBox.cs
- DeclarativeCatalogPart.cs
- BitmapEffectGeneralTransform.cs
- InvalidTimeZoneException.cs
- XslCompiledTransform.cs
- CodeDOMProvider.cs
- CompoundFileIOPermission.cs
- XmlMtomReader.cs
- XmlIlGenerator.cs
- AssemblyBuilderData.cs
- PostBackTrigger.cs
- LogArchiveSnapshot.cs
- PassportAuthenticationModule.cs
- XmlTextAttribute.cs
- KnownTypesProvider.cs
- WebUtil.cs
- ColorInterpolationModeValidation.cs
- UnionQueryOperator.cs
- DataBindingCollectionConverter.cs
- CoordinationService.cs
- RotateTransform3D.cs
- XsltOutput.cs
- Logging.cs
- DrawingContext.cs
- TriState.cs
- ElementFactory.cs
- NativeMethods.cs
- _UncName.cs
- CrossSiteScriptingValidation.cs
- DataGridViewCellPaintingEventArgs.cs
- StylusDownEventArgs.cs
- RefreshPropertiesAttribute.cs
- StorageMappingFragment.cs
- IISMapPath.cs
- Container.cs
- StringArrayConverter.cs
- WizardForm.cs
- CssClassPropertyAttribute.cs
- Compiler.cs
- Rect3D.cs
- Italic.cs
- RectAnimationUsingKeyFrames.cs
- OdbcTransaction.cs
- XmlLanguageConverter.cs
- IList.cs
- MaterializeFromAtom.cs
- GridViewCancelEditEventArgs.cs
- SemanticAnalyzer.cs