Code:
/ 4.0 / 4.0 / untmp / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / WinForms / Managed / System / WinForms / DrawTreeNodeEventArgs.cs / 1305376 / 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.
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- RandomNumberGenerator.cs
- OciLobLocator.cs
- HttpResponseBase.cs
- EmbeddedMailObject.cs
- ReliabilityContractAttribute.cs
- XmlUtilWriter.cs
- TargetFrameworkUtil.cs
- AlignmentYValidation.cs
- FieldNameLookup.cs
- shaperfactoryquerycachekey.cs
- ControlBuilder.cs
- WebPartsPersonalization.cs
- Selection.cs
- AttachmentCollection.cs
- ToolTipAutomationPeer.cs
- DurationConverter.cs
- TemplateControlCodeDomTreeGenerator.cs
- xsdvalidator.cs
- ProcessHostMapPath.cs
- AttachedPropertyBrowsableForTypeAttribute.cs
- StateManagedCollection.cs
- CharConverter.cs
- WebBrowserNavigatedEventHandler.cs
- ScriptingRoleServiceSection.cs
- PointAnimationBase.cs
- BasicBrowserDialog.designer.cs
- coordinatorscratchpad.cs
- RC2CryptoServiceProvider.cs
- BindingExpression.cs
- SortKey.cs
- odbcmetadatafactory.cs
- CorrelationTokenTypeConvertor.cs
- AssemblyNameProxy.cs
- ObjectStateManager.cs
- Annotation.cs
- UnsafeNativeMethods.cs
- HighContrastHelper.cs
- Range.cs
- XPathMessageFilterTable.cs
- XPathArrayIterator.cs
- EntityCommand.cs
- SHA512Managed.cs
- RoutedEventArgs.cs
- StringTraceRecord.cs
- RegistrationServices.cs
- SqlAggregateChecker.cs
- WinInet.cs
- MissingManifestResourceException.cs
- ProjectionCamera.cs
- PathGeometry.cs
- ScrollPattern.cs
- Viewport2DVisual3D.cs
- DynamicActivityProperty.cs
- SortKey.cs
- BuildDependencySet.cs
- RuntimeHandles.cs
- ImageSourceValueSerializer.cs
- SecurityTokenRequirement.cs
- InvokeHandlers.cs
- OdbcStatementHandle.cs
- ConfigXmlText.cs
- AssemblyNameProxy.cs
- RequestSecurityTokenSerializer.cs
- MetabaseSettingsIis7.cs
- WebBrowserNavigatedEventHandler.cs
- Monitor.cs
- Unit.cs
- ItemContainerPattern.cs
- MenuItemStyleCollection.cs
- TextSearch.cs
- InputLanguageProfileNotifySink.cs
- DrawingContextDrawingContextWalker.cs
- DBAsyncResult.cs
- XmlDataDocument.cs
- DataGridViewToolTip.cs
- WriterOutput.cs
- ZipArchive.cs
- SizeF.cs
- GregorianCalendar.cs
- SafeHandles.cs
- ChannelServices.cs
- MarkerProperties.cs
- Utils.cs
- File.cs
- EdgeModeValidation.cs
- DnsEndPoint.cs
- WebPartMovingEventArgs.cs
- OleStrCAMarshaler.cs
- QualificationDataItem.cs
- LassoHelper.cs
- _emptywebproxy.cs
- ReadOnlyPropertyMetadata.cs
- SqlDependencyUtils.cs
- SerializationSectionGroup.cs
- AccessDataSource.cs
- CodeTypeOfExpression.cs
- CmsInterop.cs
- OutputCacheProfile.cs
- ToolStripItemTextRenderEventArgs.cs
- DecoderReplacementFallback.cs