Code:
/ DotNET / DotNET / 8.0 / untmp / whidbey / REDBITS / ndp / fx / src / WinForms / Managed / System / WinForms / ToolStripPanelRenderEventArgs.cs / 1 / 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.
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- MetadataWorkspace.cs
- DesignerVerbCollection.cs
- ObjectItemCollectionAssemblyCacheEntry.cs
- DateTimeOffsetAdapter.cs
- KeyInstance.cs
- Empty.cs
- FixUp.cs
- AVElementHelper.cs
- SystemResourceHost.cs
- PrintPreviewGraphics.cs
- AssemblyUtil.cs
- AsymmetricSignatureDeformatter.cs
- DEREncoding.cs
- LineGeometry.cs
- MailAddressParser.cs
- DataContractSerializerElement.cs
- CurrentChangingEventManager.cs
- JsonMessageEncoderFactory.cs
- connectionpool.cs
- Task.cs
- EdmPropertyAttribute.cs
- Oid.cs
- ElementMarkupObject.cs
- PageBreakRecord.cs
- sitestring.cs
- DragStartedEventArgs.cs
- PropertySegmentSerializationProvider.cs
- SynchronizedInputAdaptor.cs
- EncryptedReference.cs
- SettingsAttributeDictionary.cs
- NamespaceImport.cs
- LayoutEditorPart.cs
- CryptoApi.cs
- PropertyItemInternal.cs
- PropertyInformation.cs
- UpdatePanelTriggerCollection.cs
- SmtpFailedRecipientException.cs
- CollectionsUtil.cs
- WinFormsUtils.cs
- AssemblyName.cs
- InputElement.cs
- CaseInsensitiveComparer.cs
- Formatter.cs
- SafeReadContext.cs
- Attachment.cs
- ReferentialConstraint.cs
- DocumentApplicationJournalEntry.cs
- GroupByExpressionRewriter.cs
- CodeRegionDirective.cs
- FrameworkContentElement.cs
- RangeValuePattern.cs
- ScrollProviderWrapper.cs
- BufferModeSettings.cs
- DataServiceProviderMethods.cs
- CodeAttributeDeclarationCollection.cs
- ManagementException.cs
- CriticalFinalizerObject.cs
- RegexMatchCollection.cs
- StringFormat.cs
- DataBindingHandlerAttribute.cs
- RelOps.cs
- RedBlackList.cs
- ToolStripItem.cs
- XmlAttributeCollection.cs
- ChooseAction.cs
- DateTimeValueSerializer.cs
- ApplicationServiceManager.cs
- ExceptionUtil.cs
- InputMethodStateChangeEventArgs.cs
- WaitForChangedResult.cs
- ListViewItemSelectionChangedEvent.cs
- SoundPlayer.cs
- FaultReason.cs
- PixelShader.cs
- MarkupCompilePass2.cs
- InstanceStoreQueryResult.cs
- DoubleCollectionValueSerializer.cs
- AbstractExpressions.cs
- DBDataPermissionAttribute.cs
- RepeatButtonAutomationPeer.cs
- DropDownList.cs
- SortFieldComparer.cs
- StorageComplexTypeMapping.cs
- StringConverter.cs
- AssemblyBuilder.cs
- DataSourceControl.cs
- MailAddressCollection.cs
- HttpChannelHelpers.cs
- HttpProfileGroupBase.cs
- DataObjectAttribute.cs
- OverflowException.cs
- MachineKeyValidationConverter.cs
- WebPartConnectVerb.cs
- WebPartDescriptionCollection.cs
- ComNativeDescriptor.cs
- Help.cs
- CheckBoxField.cs
- NativeMethodsOther.cs
- ApplicationManager.cs
- SymmetricAlgorithm.cs