Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / WinForms / Managed / System / WinForms / ToolStripPanelRenderEventArgs.cs / 1305376 / ToolStripPanelRenderEventArgs.cs
//------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------------------- namespace System.Windows.Forms { using System.Drawing; ////// ToolStripPanelRenderEventArgs /// public class ToolStripPanelRenderEventArgs : EventArgs { private ToolStripPanel toolStripPanel = null; private Graphics graphics = null; private bool handled = false; ////// This class represents all the information to render the toolStrip /// public ToolStripPanelRenderEventArgs(Graphics g, ToolStripPanel toolStripPanel) { this.toolStripPanel = toolStripPanel; this.graphics = g; } ////// the graphics object to draw with /// public Graphics Graphics { get { return graphics; } } ////// Represents which toolStrip was affected by the click /// public ToolStripPanel ToolStripPanel { get { return toolStripPanel; } } public bool Handled { get { return handled; } set { handled = value; } } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. //------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------------------- namespace System.Windows.Forms { using System.Drawing; ////// ToolStripPanelRenderEventArgs /// public class ToolStripPanelRenderEventArgs : EventArgs { private ToolStripPanel toolStripPanel = null; private Graphics graphics = null; private bool handled = false; ////// This class represents all the information to render the toolStrip /// public ToolStripPanelRenderEventArgs(Graphics g, ToolStripPanel toolStripPanel) { this.toolStripPanel = toolStripPanel; this.graphics = g; } ////// the graphics object to draw with /// public Graphics Graphics { get { return graphics; } } ////// Represents which toolStrip was affected by the click /// public ToolStripPanel ToolStripPanel { get { return toolStripPanel; } } public bool Handled { get { return handled; } set { handled = value; } } } } // 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
- StreamUpdate.cs
- ImpersonateTokenRef.cs
- ErrorTableItemStyle.cs
- ItemContainerProviderWrapper.cs
- AllMembershipCondition.cs
- ExpandCollapseProviderWrapper.cs
- InputScope.cs
- DrawListViewItemEventArgs.cs
- HtmlFormWrapper.cs
- GeneratedView.cs
- StorageSetMapping.cs
- DivideByZeroException.cs
- CheckBoxBaseAdapter.cs
- SchemaNames.cs
- _CommandStream.cs
- ServiceManager.cs
- DataGridTable.cs
- StateDesigner.LayoutSelectionGlyph.cs
- LineInfo.cs
- AttributedMetaModel.cs
- AnonymousIdentificationModule.cs
- HitTestWithPointDrawingContextWalker.cs
- XmlEntity.cs
- SingleSelectRootGridEntry.cs
- Binding.cs
- UnsafeNativeMethodsCLR.cs
- PropertyChangedEventArgs.cs
- ClientBuildManagerCallback.cs
- ImmutablePropertyDescriptorGridEntry.cs
- BitmapEffectInput.cs
- Size.cs
- LinkButton.cs
- EllipseGeometry.cs
- WSFederationHttpBinding.cs
- BinaryFormatterWriter.cs
- FormParameter.cs
- Frame.cs
- PrinterSettings.cs
- SerialReceived.cs
- DataViewManagerListItemTypeDescriptor.cs
- DataGridViewRowPrePaintEventArgs.cs
- _CommandStream.cs
- SvcMapFileSerializer.cs
- SBCSCodePageEncoding.cs
- ServicesUtilities.cs
- CodeDefaultValueExpression.cs
- ParameterCollection.cs
- CommandBindingCollection.cs
- AsynchronousChannelMergeEnumerator.cs
- NetSectionGroup.cs
- DataGridViewCellStyleChangedEventArgs.cs
- XmlUrlEditor.cs
- ServiceObjectContainer.cs
- TableCell.cs
- ValueExpressions.cs
- RoutedUICommand.cs
- SqlDesignerDataSourceView.cs
- OutputCacheEntry.cs
- ControlBuilderAttribute.cs
- SyndicationDeserializer.cs
- ThreadSafeList.cs
- GeometryDrawing.cs
- Calendar.cs
- RawTextInputReport.cs
- VisualCollection.cs
- NameValueFileSectionHandler.cs
- WebBrowser.cs
- StringFormat.cs
- MruCache.cs
- FactoryGenerator.cs
- TabPanel.cs
- DirectionalLight.cs
- PathData.cs
- ProfilePropertySettings.cs
- SByteStorage.cs
- TagPrefixAttribute.cs
- WebProxyScriptElement.cs
- XhtmlTextWriter.cs
- VScrollProperties.cs
- RenamedEventArgs.cs
- DebuggerAttributes.cs
- AdornedElementPlaceholder.cs
- StringComparer.cs
- Span.cs
- GridViewUpdatedEventArgs.cs
- Pair.cs
- AttributeQuery.cs
- ActivitiesCollection.cs
- ContentOperations.cs
- InstanceOwner.cs
- DocumentViewer.cs
- X509CertificateStore.cs
- GridViewRowCollection.cs
- AmbientLight.cs
- TextRangeEditLists.cs
- Qualifier.cs
- SQLString.cs
- SplineQuaternionKeyFrame.cs
- ItemType.cs
- ShapingEngine.cs