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
- FormViewPagerRow.cs
- ToolZone.cs
- ProcessManager.cs
- ObjectDataSourceView.cs
- ButtonChrome.cs
- GraphicsState.cs
- NotImplementedException.cs
- HttpStaticObjectsCollectionBase.cs
- RawContentTypeMapper.cs
- MoveSizeWinEventHandler.cs
- SchemaDeclBase.cs
- FillRuleValidation.cs
- WriterOutput.cs
- Range.cs
- DictionaryEntry.cs
- Queue.cs
- GridViewSortEventArgs.cs
- WebUtility.cs
- KeyConverter.cs
- storepermissionattribute.cs
- GridViewRowCollection.cs
- PropertyStore.cs
- ProjectionPlan.cs
- InvalidAsynchronousStateException.cs
- SqlFactory.cs
- FixedPageStructure.cs
- ContractListAdapter.cs
- SqlConnectionFactory.cs
- BooleanAnimationBase.cs
- WebReferencesBuildProvider.cs
- EventSourceCreationData.cs
- TypeNameHelper.cs
- GridItemCollection.cs
- ListViewDataItem.cs
- FileRecordSequenceHelper.cs
- ResourceReferenceKeyNotFoundException.cs
- securestring.cs
- DLinqDataModelProvider.cs
- BoolExpressionVisitors.cs
- Polygon.cs
- ReflectTypeDescriptionProvider.cs
- ListDictionary.cs
- BitVector32.cs
- GeometryModel3D.cs
- AuthenticationConfig.cs
- HttpClientCertificate.cs
- ObjectPropertyMapping.cs
- xmlformatgeneratorstatics.cs
- LoginCancelEventArgs.cs
- DefaultValueAttribute.cs
- FieldAccessException.cs
- CipherData.cs
- InputElement.cs
- Base64Decoder.cs
- SqlDuplicator.cs
- SafePointer.cs
- MethodToken.cs
- Point.cs
- _LocalDataStore.cs
- Attributes.cs
- DataBoundControlAdapter.cs
- PlanCompilerUtil.cs
- RuleSettingsCollection.cs
- PieceDirectory.cs
- ResourceReferenceExpression.cs
- TraceContext.cs
- ImageCodecInfo.cs
- FullTextBreakpoint.cs
- OutputScopeManager.cs
- DataContractSerializerSection.cs
- TextRunTypographyProperties.cs
- SchemaCollectionPreprocessor.cs
- LoginStatusDesigner.cs
- UserControl.cs
- ServiceChannelFactory.cs
- _SslStream.cs
- GPRECTF.cs
- SplitContainer.cs
- serverconfig.cs
- MobileUserControlDesigner.cs
- ListDesigner.cs
- XPathMessageFilterTable.cs
- XmlComplianceUtil.cs
- HttpHandlersSection.cs
- DoubleAnimationUsingKeyFrames.cs
- StatusBarDrawItemEvent.cs
- AutomationFocusChangedEventArgs.cs
- IISUnsafeMethods.cs
- XmlReflectionImporter.cs
- TextTreeText.cs
- TableProvider.cs
- SR.cs
- FixedNode.cs
- HttpPostLocalhostServerProtocol.cs
- RtfFormatStack.cs
- SystemNetworkInterface.cs
- HttpVersion.cs
- Terminate.cs
- MaterializeFromAtom.cs
- StorageComplexTypeMapping.cs