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
- MetabaseServerConfig.cs
- TablePatternIdentifiers.cs
- ValidatingReaderNodeData.cs
- PartialArray.cs
- RadioButtonList.cs
- ItemMap.cs
- thaishape.cs
- DashStyle.cs
- WebPartDisplayModeCollection.cs
- HostedAspNetEnvironment.cs
- SQLRoleProvider.cs
- GroupBoxDesigner.cs
- DictionaryContent.cs
- DataGridViewSelectedRowCollection.cs
- TextSearch.cs
- XmlSchemaComplexContentRestriction.cs
- querybuilder.cs
- SymDocumentType.cs
- Image.cs
- XmlHierarchicalDataSourceView.cs
- CodePageEncoding.cs
- DateTimeUtil.cs
- FileClassifier.cs
- ObjectItemNoOpAssemblyLoader.cs
- EditorAttribute.cs
- HelloOperation11AsyncResult.cs
- NextPreviousPagerField.cs
- RowToFieldTransformer.cs
- SystemIPInterfaceStatistics.cs
- KeyEvent.cs
- HtmlButton.cs
- DataDocumentXPathNavigator.cs
- FtpCachePolicyElement.cs
- ReverseInheritProperty.cs
- SoapReflectionImporter.cs
- CriticalHandle.cs
- AutomationPatternInfo.cs
- MarkupExtensionParser.cs
- DomainUpDown.cs
- CompilerGlobalScopeAttribute.cs
- BrowserCapabilitiesCompiler.cs
- DataGridViewAccessibleObject.cs
- GeometryCollection.cs
- WebUtil.cs
- CacheEntry.cs
- ReplyAdapterChannelListener.cs
- BitmapDownload.cs
- RectValueSerializer.cs
- TemplateControlCodeDomTreeGenerator.cs
- ImportContext.cs
- GlyphRun.cs
- FontCacheUtil.cs
- httpserverutility.cs
- AsyncOperationLifetimeManager.cs
- PublisherMembershipCondition.cs
- LowerCaseStringConverter.cs
- FormViewPagerRow.cs
- SimpleBitVector32.cs
- WebColorConverter.cs
- DateTimeConstantAttribute.cs
- ResourceAssociationType.cs
- InheritanceAttribute.cs
- FileDialogPermission.cs
- Cell.cs
- BaseAppDomainProtocolHandler.cs
- PersistenceContextEnlistment.cs
- DirtyTextRange.cs
- LOSFormatter.cs
- CodeComment.cs
- InstallerTypeAttribute.cs
- ExpressionEvaluator.cs
- GeneratedCodeAttribute.cs
- SystemUnicastIPAddressInformation.cs
- FileDialogCustomPlaces.cs
- AttributeQuery.cs
- Main.cs
- MetadataSource.cs
- WebPartConnectionsCloseVerb.cs
- DataContext.cs
- Int16.cs
- RoutedEventConverter.cs
- WebPartAuthorizationEventArgs.cs
- ValidatedControlConverter.cs
- XmlValidatingReader.cs
- MonitorWrapper.cs
- HwndSource.cs
- NameScope.cs
- ValidationContext.cs
- AppSettingsExpressionBuilder.cs
- StateBag.cs
- Latin1Encoding.cs
- GlobalAllocSafeHandle.cs
- AnnotationHelper.cs
- XmlSchemaObject.cs
- DeviceSpecificDesigner.cs
- PropertyFilter.cs
- BinaryObjectInfo.cs
- SequenceQuery.cs
- DesignParameter.cs
- HotCommands.cs