Code:
/ DotNET / DotNET / 8.0 / untmp / whidbey / REDBITS / ndp / fx / src / WinForms / Managed / System / WinForms / ToolStripContentPanelRenderEventArgs.cs / 1 / ToolStripContentPanelRenderEventArgs.cs
//------------------------------------------------------------------------------
//
// Copyright (c) Microsoft Corporation. All rights reserved.
//
//-----------------------------------------------------------------------------
namespace System.Windows.Forms {
using System.Drawing;
///
/// ToolStripContentPanelRenderEventArgs
///
public class ToolStripContentPanelRenderEventArgs : EventArgs {
private ToolStripContentPanel contentPanel = null;
private Graphics graphics = null;
private bool handled = false;
///
/// This class represents all the information to render the toolStrip
///
public ToolStripContentPanelRenderEventArgs(Graphics g, ToolStripContentPanel contentPanel) {
this.contentPanel = contentPanel;
this.graphics = g;
}
///
/// the graphics object to draw with
///
public Graphics Graphics {
get {
return graphics;
}
}
public bool Handled {
get { return handled; }
set { handled = value; }
}
///
/// Represents which toolStrip was affected by the click
///
public ToolStripContentPanel ToolStripContentPanel {
get {
return contentPanel;
}
}
}
}
// File provided for Reference Use Only by Microsoft Corporation (c) 2007.
// Copyright (c) Microsoft Corporation. All rights reserved.
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- ComponentResourceKeyConverter.cs
- PackWebResponse.cs
- StringInfo.cs
- RecognizerBase.cs
- OverflowException.cs
- QueryRewriter.cs
- SvcMapFile.cs
- columnmapkeybuilder.cs
- ManifestResourceInfo.cs
- TextServicesDisplayAttribute.cs
- DesignerAttributeInfo.cs
- DetailsViewPagerRow.cs
- GrabHandleGlyph.cs
- DiscoveryMessageProperty.cs
- CheckedListBox.cs
- IndexOutOfRangeException.cs
- Semaphore.cs
- Cursor.cs
- Dump.cs
- BitmapImage.cs
- BamlRecordHelper.cs
- ZipIOExtraFieldElement.cs
- UserValidatedEventArgs.cs
- MatchingStyle.cs
- MatrixUtil.cs
- Mouse.cs
- SelectionService.cs
- TextTreeText.cs
- PointCollection.cs
- XsdDateTime.cs
- TextEndOfSegment.cs
- TransactionContextManager.cs
- CharacterMetrics.cs
- XmlQualifiedNameTest.cs
- Variable.cs
- XmlBindingWorker.cs
- ISCIIEncoding.cs
- XmlNodeReader.cs
- PolyLineSegmentFigureLogic.cs
- Expander.cs
- CheckedListBox.cs
- ZipIORawDataFileBlock.cs
- DirectoryNotFoundException.cs
- XamlTypeMapperSchemaContext.cs
- AutomationProperties.cs
- BidPrivateBase.cs
- DetailsViewUpdateEventArgs.cs
- PerfCounters.cs
- HttpDictionary.cs
- XmlQueryRuntime.cs
- Page.cs
- SequenceFullException.cs
- ImpersonationContext.cs
- Animatable.cs
- LocalServiceSecuritySettings.cs
- WorkflowInvoker.cs
- Int64Storage.cs
- SpotLight.cs
- wgx_commands.cs
- ScrollChangedEventArgs.cs
- TagMapCollection.cs
- SystemIcons.cs
- DocumentGridPage.cs
- SiteMapProvider.cs
- ApplicationException.cs
- ListItemParagraph.cs
- XPathScanner.cs
- DragDrop.cs
- RsaSecurityToken.cs
- WizardForm.cs
- MemberDomainMap.cs
- StylusButtonCollection.cs
- TypeUnloadedException.cs
- ContractMapping.cs
- EventDescriptor.cs
- ParameterEditorUserControl.cs
- ExportOptions.cs
- InfoCardListRequest.cs
- NamespaceList.cs
- GroupBox.cs
- SoapSchemaMember.cs
- Binding.cs
- FormsIdentity.cs
- RtfToXamlReader.cs
- ScrollBarAutomationPeer.cs
- XmlSchemaAll.cs
- AttachmentCollection.cs
- ScriptResourceHandler.cs
- DataGridViewRowPrePaintEventArgs.cs
- versioninfo.cs
- HttpApplication.cs
- DrawingContextWalker.cs
- ResourceManager.cs
- WebBrowserDocumentCompletedEventHandler.cs
- EdmMember.cs
- PolyLineSegmentFigureLogic.cs
- CodeIdentifier.cs
- SocketCache.cs
- DataBinding.cs
- XmlQuerySequence.cs