Code:
/ 4.0 / 4.0 / 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. //------------------------------------------------------------------------------ //// 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
- PixelShader.cs
- ServiceCredentialsElement.cs
- Double.cs
- ListView.cs
- Int16Animation.cs
- PostBackTrigger.cs
- Win32KeyboardDevice.cs
- SoapEnumAttribute.cs
- TraceListeners.cs
- PersonalizationDictionary.cs
- DefinitionBase.cs
- PropertyStore.cs
- CursorInteropHelper.cs
- LogLogRecordEnumerator.cs
- WebException.cs
- StringUtil.cs
- DynamicEndpoint.cs
- XmlFormatWriterGenerator.cs
- COMException.cs
- ZipIOExtraFieldElement.cs
- SafeHandles.cs
- XmlTextReaderImplHelpers.cs
- SafeThemeHandle.cs
- IRCollection.cs
- MdbDataFileEditor.cs
- SocketElement.cs
- OleDbParameterCollection.cs
- XmlDocumentFragment.cs
- CalendarAutoFormatDialog.cs
- EmptyQuery.cs
- ISAPIWorkerRequest.cs
- mongolianshape.cs
- ProgressBar.cs
- RefreshPropertiesAttribute.cs
- SqlUserDefinedAggregateAttribute.cs
- TypeDescriptionProvider.cs
- XPathNodeIterator.cs
- PropertyChangingEventArgs.cs
- KnownTypesHelper.cs
- GenericTextProperties.cs
- BaseConfigurationRecord.cs
- CompatibleIComparer.cs
- PrinterSettings.cs
- validationstate.cs
- PersistChildrenAttribute.cs
- Crc32Helper.cs
- MenuItem.cs
- XmlTextReaderImpl.cs
- PriorityQueue.cs
- BaseParagraph.cs
- RepeatInfo.cs
- metadatamappinghashervisitor.cs
- BitmapEffectGeneralTransform.cs
- ParserExtension.cs
- Connector.cs
- PauseStoryboard.cs
- ColumnCollection.cs
- ConditionCollection.cs
- XmlAggregates.cs
- Hash.cs
- ContextMarshalException.cs
- WindowsClaimSet.cs
- ServerIdentity.cs
- Application.cs
- Exceptions.cs
- BaseCollection.cs
- FilterException.cs
- XmlAttribute.cs
- SiteMapSection.cs
- PageParserFilter.cs
- WebPartCatalogAddVerb.cs
- FilterUserControlBase.cs
- SQLByteStorage.cs
- AssociationProvider.cs
- FlowDocumentReader.cs
- FormViewDeleteEventArgs.cs
- XmlName.cs
- PartitionedStream.cs
- DesignOnlyAttribute.cs
- DateBoldEvent.cs
- XsdCachingReader.cs
- XmlAttributeProperties.cs
- PtsContext.cs
- PersonalizationProvider.cs
- UseAttributeSetsAction.cs
- CodeNamespaceImport.cs
- CellParagraph.cs
- WindowsEditBoxRange.cs
- control.ime.cs
- HttpWebResponse.cs
- XmlTextReaderImpl.cs
- DesignOnlyAttribute.cs
- ResourceManager.cs
- NameSpaceEvent.cs
- StyleSheet.cs
- Vector3dCollection.cs
- RSAPKCS1KeyExchangeFormatter.cs
- VisualStyleElement.cs
- TCPListener.cs
- ClassValidator.cs