Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / whidbey / netfxsp / 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
- XmlSchemaIdentityConstraint.cs
- CompleteWizardStep.cs
- ChtmlTextWriter.cs
- Win32PrintDialog.cs
- Point3DCollection.cs
- RSAOAEPKeyExchangeDeformatter.cs
- MailSettingsSection.cs
- X509Utils.cs
- FeatureSupport.cs
- WebConfigManager.cs
- Utility.cs
- GPPOINT.cs
- XmlQueryTypeFactory.cs
- _FixedSizeReader.cs
- SignedPkcs7.cs
- XmlEncoding.cs
- FileChangesMonitor.cs
- CustomSignedXml.cs
- TableRow.cs
- HostingEnvironmentException.cs
- Visitor.cs
- HtmlButton.cs
- ObjectStateManagerMetadata.cs
- Splitter.cs
- BlurEffect.cs
- RevocationPoint.cs
- WebHttpSecurityElement.cs
- NameObjectCollectionBase.cs
- Coordinator.cs
- PropertyGridCommands.cs
- KeyInfo.cs
- NotSupportedException.cs
- ObjectContext.cs
- WorkflowRuntimeService.cs
- BamlLocalizerErrorNotifyEventArgs.cs
- MLangCodePageEncoding.cs
- NullableIntAverageAggregationOperator.cs
- WeakEventManager.cs
- SoapClientMessage.cs
- AttributeXamlType.cs
- CallbackCorrelationInitializer.cs
- RectIndependentAnimationStorage.cs
- AsmxEndpointPickerExtension.cs
- ClientSideQueueItem.cs
- ValidationService.cs
- DbReferenceCollection.cs
- ImmutablePropertyDescriptorGridEntry.cs
- RegexFCD.cs
- ProcessHostFactoryHelper.cs
- ShaperBuffers.cs
- DataChangedEventManager.cs
- BinaryNode.cs
- InputLanguageSource.cs
- ISAPIRuntime.cs
- WindowsListBox.cs
- MembershipPasswordException.cs
- TextClipboardData.cs
- CryptoConfig.cs
- ConfigurationLocationCollection.cs
- DnsElement.cs
- Comparer.cs
- XmlReflectionMember.cs
- NullableDoubleAverageAggregationOperator.cs
- InputGestureCollection.cs
- COAUTHIDENTITY.cs
- SmiEventStream.cs
- InkPresenterAutomationPeer.cs
- FilterException.cs
- DataFieldEditor.cs
- GridViewDeletedEventArgs.cs
- _TimerThread.cs
- ProfileManager.cs
- ZipFileInfo.cs
- DataServiceException.cs
- ListBindableAttribute.cs
- ClrProviderManifest.cs
- WaitHandle.cs
- ToolStripItem.cs
- PrivateFontCollection.cs
- UInt16Converter.cs
- ToolBarTray.cs
- Int64.cs
- SchemaNames.cs
- AspProxy.cs
- DataGridTable.cs
- EmptyCollection.cs
- MouseActionConverter.cs
- Trace.cs
- FloaterParagraph.cs
- ArrayList.cs
- base64Transforms.cs
- RestClientProxyHandler.cs
- RequiredArgumentAttribute.cs
- Descriptor.cs
- mediaclock.cs
- SingleAnimation.cs
- FacetEnabledSchemaElement.cs
- HintTextConverter.cs
- PlatformCulture.cs
- CngAlgorithm.cs