Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / whidbey / NetFXspW7 / 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
- HashMembershipCondition.cs
- ProfilePropertySettings.cs
- SQLRoleProvider.cs
- XmlHierarchicalDataSourceView.cs
- ConcurrentBag.cs
- oledbconnectionstring.cs
- XhtmlBasicPhoneCallAdapter.cs
- RotationValidation.cs
- SHA1Managed.cs
- ApplicationDirectoryMembershipCondition.cs
- BamlTreeUpdater.cs
- IxmlLineInfo.cs
- ComponentGlyph.cs
- TableParaClient.cs
- ZipIOCentralDirectoryFileHeader.cs
- IPAddress.cs
- ConstraintCollection.cs
- QilInvokeEarlyBound.cs
- NativeBuffer.cs
- ItemMap.cs
- XmlDeclaration.cs
- StylusButtonCollection.cs
- BamlLocalizationDictionary.cs
- WebConvert.cs
- CapabilitiesRule.cs
- LongValidatorAttribute.cs
- FixedSOMPage.cs
- TextEditorCharacters.cs
- ProfileModule.cs
- LocalValueEnumerator.cs
- TreeViewImageKeyConverter.cs
- ToolStripProfessionalLowResolutionRenderer.cs
- MdiWindowListStrip.cs
- xml.cs
- CompensatableSequenceActivity.cs
- OptimizerPatterns.cs
- ContainerParaClient.cs
- MethodBody.cs
- XmlIgnoreAttribute.cs
- WebBrowserUriTypeConverter.cs
- TypeSystemProvider.cs
- BaseCAMarshaler.cs
- GenericPrincipal.cs
- CornerRadiusConverter.cs
- Adorner.cs
- ClientSideProviderDescription.cs
- WindowsClientElement.cs
- StorageComplexPropertyMapping.cs
- TransformerConfigurationWizardBase.cs
- TakeQueryOptionExpression.cs
- DataGridView.cs
- ColorAnimation.cs
- SoapReflectionImporter.cs
- ObjectViewFactory.cs
- QueryException.cs
- returneventsaver.cs
- PageBreakRecord.cs
- EntityDataSourceState.cs
- XmlSchemaComplexContentExtension.cs
- Point3D.cs
- ScalarRestriction.cs
- TableColumnCollectionInternal.cs
- Crypto.cs
- DataGridTextBox.cs
- LabelLiteral.cs
- CodeSubDirectoriesCollection.cs
- documentsequencetextview.cs
- SystemIPGlobalProperties.cs
- DynamicDataRouteHandler.cs
- NameValueSectionHandler.cs
- ListBindingConverter.cs
- DataTemplateKey.cs
- IPHostEntry.cs
- WinOEToolBoxItem.cs
- RefType.cs
- AttachedPropertyBrowsableForTypeAttribute.cs
- OleDbParameter.cs
- ConnectionInterfaceCollection.cs
- ValidateNames.cs
- SymLanguageType.cs
- AppDomainUnloadedException.cs
- XmlNamespaceManager.cs
- DbDataReader.cs
- EntityDataSourceSelectingEventArgs.cs
- ArcSegment.cs
- InputElement.cs
- WebPartExportVerb.cs
- SerializerWriterEventHandlers.cs
- DateRangeEvent.cs
- XmlSchemaComplexType.cs
- RadioButton.cs
- CharUnicodeInfo.cs
- TableLayoutPanelBehavior.cs
- OdbcTransaction.cs
- EdmTypeAttribute.cs
- SecurityPolicySection.cs
- GenericXmlSecurityTokenAuthenticator.cs
- DateTimeConverter.cs
- DocumentViewer.cs
- StateMachineHelpers.cs