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
- ElementUtil.cs
- OdbcRowUpdatingEvent.cs
- EastAsianLunisolarCalendar.cs
- DecimalConstantAttribute.cs
- HttpContextBase.cs
- ToolStripDropDown.cs
- EventProvider.cs
- CorrelationRequestContext.cs
- PenLineJoinValidation.cs
- FormatStringEditor.cs
- StorageInfo.cs
- DockPanel.cs
- SharedStatics.cs
- SubMenuStyle.cs
- Error.cs
- SessionPageStateSection.cs
- ArrayConverter.cs
- StylusPlugin.cs
- XmlDataLoader.cs
- ControlIdConverter.cs
- StringSource.cs
- ModelPropertyImpl.cs
- Rotation3DAnimationUsingKeyFrames.cs
- CodeMemberField.cs
- IsolatedStoragePermission.cs
- BitmapEffectState.cs
- DataGridViewRowPostPaintEventArgs.cs
- SqlRecordBuffer.cs
- adornercollection.cs
- CodeChecksumPragma.cs
- KeyInterop.cs
- Int64Converter.cs
- Metadata.cs
- DictionarySectionHandler.cs
- AutomationIdentifierGuids.cs
- EdmProperty.cs
- SecuritySessionSecurityTokenAuthenticator.cs
- EmptyEnumerator.cs
- GeometryDrawing.cs
- LocationSectionRecord.cs
- SqlConnectionHelper.cs
- BaseUriHelper.cs
- CryptoStream.cs
- DataBindingCollectionEditor.cs
- XmlSerializableWriter.cs
- ProviderConnectionPoint.cs
- BooleanToVisibilityConverter.cs
- BindingsCollection.cs
- ColorMap.cs
- CollectionBase.cs
- AnnotationAdorner.cs
- AttachedPropertyMethodSelector.cs
- ParameterCollection.cs
- DefaultAssemblyResolver.cs
- ConnectionManagementElementCollection.cs
- TrackBarRenderer.cs
- FileSystemEventArgs.cs
- RenderContext.cs
- SafeCryptoHandles.cs
- DataGridViewButtonColumn.cs
- LinearQuaternionKeyFrame.cs
- DataServiceCollectionOfT.cs
- ServicePointManager.cs
- ToolBarButton.cs
- TrackingMemoryStreamFactory.cs
- SqlReferenceCollection.cs
- OletxVolatileEnlistment.cs
- EntityDataSourceState.cs
- RIPEMD160.cs
- XPathQilFactory.cs
- Menu.cs
- CodeTypeDeclarationCollection.cs
- QuaternionIndependentAnimationStorage.cs
- CollectionChangeEventArgs.cs
- ObjectDataSource.cs
- OptimizedTemplateContentHelper.cs
- Stroke2.cs
- NeutralResourcesLanguageAttribute.cs
- CharAnimationUsingKeyFrames.cs
- ImageCollectionCodeDomSerializer.cs
- HttpHandlerActionCollection.cs
- PaginationProgressEventArgs.cs
- WindowsSlider.cs
- ChildrenQuery.cs
- assertwrapper.cs
- Screen.cs
- ReflectionTypeLoadException.cs
- DataGridCheckBoxColumn.cs
- QilPatternVisitor.cs
- DetailsViewInsertEventArgs.cs
- FixedTextSelectionProcessor.cs
- TextClipboardData.cs
- SinglePageViewer.cs
- GreaterThanOrEqual.cs
- RelatedCurrencyManager.cs
- Rule.cs
- IFormattable.cs
- XmlSchemaAnnotation.cs
- ZipIOLocalFileDataDescriptor.cs
- input.cs