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
- AppDomainFactory.cs
- WmlSelectionListAdapter.cs
- GeometryGroup.cs
- ContentIterators.cs
- Psha1DerivedKeyGenerator.cs
- Animatable.cs
- SelectionWordBreaker.cs
- BamlLocalizationDictionary.cs
- OracleCommandSet.cs
- AssemblyAssociatedContentFileAttribute.cs
- StructureChangedEventArgs.cs
- PagedDataSource.cs
- xml.cs
- BoolExpr.cs
- ToolCreatedEventArgs.cs
- RegisteredHiddenField.cs
- SecurityTokenRequirement.cs
- UnsafeNativeMethods.cs
- ProfileSettings.cs
- DashStyles.cs
- RootBrowserWindowProxy.cs
- XsltInput.cs
- WindowsEditBox.cs
- StringAnimationUsingKeyFrames.cs
- MimeTypeAttribute.cs
- DispatcherProcessingDisabled.cs
- RemotingAttributes.cs
- Substitution.cs
- Listbox.cs
- NamespaceQuery.cs
- Condition.cs
- MappedMetaModel.cs
- AddInServer.cs
- WindowsAltTab.cs
- PackageRelationshipSelector.cs
- LineGeometry.cs
- AmbientValueAttribute.cs
- BaseAddressPrefixFilterElementCollection.cs
- ColumnBinding.cs
- Publisher.cs
- OutputCacheSettingsSection.cs
- DesignRelation.cs
- Triplet.cs
- XamlTreeBuilderBamlRecordWriter.cs
- DocumentPageTextView.cs
- HttpRawResponse.cs
- ListManagerBindingsCollection.cs
- ApplicationManager.cs
- ConfigurationManagerHelperFactory.cs
- MonikerBuilder.cs
- DescendantBaseQuery.cs
- FtpRequestCacheValidator.cs
- ValidationHelper.cs
- SourceSwitch.cs
- MexHttpBindingCollectionElement.cs
- DuplicateContext.cs
- GeometryValueSerializer.cs
- NativeMethods.cs
- ToolStripStatusLabel.cs
- SqlMultiplexer.cs
- coordinator.cs
- CaseInsensitiveHashCodeProvider.cs
- EncryptedKeyIdentifierClause.cs
- PointKeyFrameCollection.cs
- PersonalizableTypeEntry.cs
- EntityKeyElement.cs
- FormViewPagerRow.cs
- IxmlLineInfo.cs
- SizeIndependentAnimationStorage.cs
- ApplicationHost.cs
- httpapplicationstate.cs
- AsyncMethodInvoker.cs
- SubMenuStyle.cs
- TitleStyle.cs
- EncodingStreamWrapper.cs
- MemberDescriptor.cs
- SapiRecoInterop.cs
- WebPartEditorOkVerb.cs
- ProfileProvider.cs
- BamlTreeNode.cs
- DataGridViewDataErrorEventArgs.cs
- DeflateStreamAsyncResult.cs
- DocumentAutomationPeer.cs
- DynamicControl.cs
- RegistryDataKey.cs
- DataGridViewElement.cs
- QilStrConcat.cs
- TagNameToTypeMapper.cs
- FileDialog.cs
- CommentEmitter.cs
- GraphicsState.cs
- PrintDocument.cs
- DiscoveryClientDuplexChannel.cs
- UTF7Encoding.cs
- XmlSchemaSimpleType.cs
- XmlSchemaSet.cs
- DescendentsWalkerBase.cs
- FontFaceLayoutInfo.cs
- Application.cs
- RelationshipEndCollection.cs