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
- ItemCheckEvent.cs
- SocketPermission.cs
- WindowsImpersonationContext.cs
- PersistenceTask.cs
- FixedSOMContainer.cs
- RoleManagerSection.cs
- ColumnResizeUndoUnit.cs
- SettingsPropertyCollection.cs
- CustomError.cs
- DependencyPropertyConverter.cs
- ellipse.cs
- Brushes.cs
- KnownBoxes.cs
- HealthMonitoringSectionHelper.cs
- FormViewCommandEventArgs.cs
- DataGridItemCollection.cs
- SignatureResourcePool.cs
- XMLUtil.cs
- MatrixConverter.cs
- GridViewUpdatedEventArgs.cs
- AlignmentXValidation.cs
- DoubleStorage.cs
- HttpFileCollection.cs
- WindowsIdentity.cs
- StorageEntityTypeMapping.cs
- ApplicationTrust.cs
- SamlSubject.cs
- TypedColumnHandler.cs
- DataGridViewRowsAddedEventArgs.cs
- PolyBezierSegment.cs
- PtsHost.cs
- TreeBuilderBamlTranslator.cs
- Binding.cs
- PropertyValidationContext.cs
- ErrorStyle.cs
- PriorityBinding.cs
- EndpointIdentity.cs
- EventLogger.cs
- Constants.cs
- VersionedStream.cs
- CultureSpecificCharacterBufferRange.cs
- DataGridViewDataConnection.cs
- BufferedWebEventProvider.cs
- InfoCardRSAPKCS1KeyExchangeDeformatter.cs
- ObjectContextServiceProvider.cs
- DebuggerAttributes.cs
- NullExtension.cs
- UpdatePanel.cs
- TrueReadOnlyCollection.cs
- MimeMultiPart.cs
- Stack.cs
- VersionPair.cs
- WeakReferenceEnumerator.cs
- CmsInterop.cs
- PanelDesigner.cs
- ReaderWriterLockSlim.cs
- Tuple.cs
- BindingsCollection.cs
- RouteTable.cs
- XmlSchemaAnnotated.cs
- Serializer.cs
- StringStorage.cs
- GifBitmapDecoder.cs
- WindowsTitleBar.cs
- XmlSerializerFactory.cs
- GridViewDeleteEventArgs.cs
- Rect3D.cs
- PageParser.cs
- SqlXml.cs
- DesignerAttribute.cs
- DataGridViewCellErrorTextNeededEventArgs.cs
- RowCache.cs
- InputMethodStateTypeInfo.cs
- KeyManager.cs
- SecurityRuntime.cs
- GridLength.cs
- FunctionCommandText.cs
- CalendarDataBindingHandler.cs
- AccessibleObject.cs
- XsltLibrary.cs
- StylusPointCollection.cs
- EventRecord.cs
- DesignOnlyAttribute.cs
- GlobalEventManager.cs
- SrgsText.cs
- HttpListenerRequestTraceRecord.cs
- DockPanel.cs
- LazyTextWriterCreator.cs
- FrameSecurityDescriptor.cs
- Compiler.cs
- GlyphCache.cs
- CharKeyFrameCollection.cs
- sqlpipe.cs
- ToolStripLabel.cs
- InfoCardRequestException.cs
- PenContext.cs
- CodeTryCatchFinallyStatement.cs
- GatewayDefinition.cs
- AppSettingsExpressionEditor.cs
- ItemsControlAutomationPeer.cs