Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / whidbey / NetFxQFE / ndp / fx / src / WinForms / Managed / System / WinForms / ToolStripItemRenderEventArgs.cs / 1 / ToolStripItemRenderEventArgs.cs
//------------------------------------------------------------------------------
//
// Copyright (c) Microsoft Corporation. All rights reserved.
//
//-----------------------------------------------------------------------------
namespace System.Windows.Forms {
using System.Drawing;
///
///
public class ToolStripItemRenderEventArgs : EventArgs {
private ToolStripItem item = null;
private Graphics graphics = null;
///
///
/// This class represents all the information to render the winbar
///
public ToolStripItemRenderEventArgs(Graphics g, ToolStripItem item) {
this.item = item;
this.graphics = g;
}
///
///
/// the graphics object to draw with
///
public Graphics Graphics {
get {
return graphics;
}
}
///
///
/// the item to draw
///
public ToolStripItem Item {
get {
return item;
}
}
///
///
/// The toolstrip the item is currently parented to
///
public ToolStrip ToolStrip {
get {
return item.ParentInternal;
}
}
}
}
// 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;
///
///
public class ToolStripItemRenderEventArgs : EventArgs {
private ToolStripItem item = null;
private Graphics graphics = null;
///
///
/// This class represents all the information to render the winbar
///
public ToolStripItemRenderEventArgs(Graphics g, ToolStripItem item) {
this.item = item;
this.graphics = g;
}
///
///
/// the graphics object to draw with
///
public Graphics Graphics {
get {
return graphics;
}
}
///
///
/// the item to draw
///
public ToolStripItem Item {
get {
return item;
}
}
///
///
/// The toolstrip the item is currently parented to
///
public ToolStrip ToolStrip {
get {
return item.ParentInternal;
}
}
}
}
// 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
- TdsParserSafeHandles.cs
- AttachedProperty.cs
- XmlValidatingReader.cs
- JavaScriptString.cs
- HwndSource.cs
- _Win32.cs
- TreeViewEvent.cs
- DataBindingExpressionBuilder.cs
- PlainXmlDeserializer.cs
- AspNetHostingPermission.cs
- DateTimeFormatInfoScanner.cs
- SiteMapNodeItemEventArgs.cs
- WebPartMenuStyle.cs
- DirectoryRootQuery.cs
- MarkedHighlightComponent.cs
- DrawingAttributes.cs
- EventListener.cs
- ViewCellRelation.cs
- TextRangeEditTables.cs
- PreservationFileWriter.cs
- InvalidOperationException.cs
- TCEAdapterGenerator.cs
- TcpServerChannel.cs
- EFColumnProvider.cs
- BoundPropertyEntry.cs
- SiteMapNodeCollection.cs
- ConvertEvent.cs
- EventWaitHandle.cs
- IListConverters.cs
- KnownIds.cs
- StringFormat.cs
- Win32PrintDialog.cs
- BufferedGraphicsContext.cs
- CharacterMetrics.cs
- DialogBaseForm.cs
- COM2PropertyBuilderUITypeEditor.cs
- AppDomainUnloadedException.cs
- UIPropertyMetadata.cs
- _SslStream.cs
- ParameterCollection.cs
- ProjectionAnalyzer.cs
- Pen.cs
- FileDialogCustomPlace.cs
- TextEditorSelection.cs
- WhiteSpaceTrimStringConverter.cs
- TextProperties.cs
- XmlParser.cs
- CodeStatement.cs
- EventMappingSettingsCollection.cs
- DragEventArgs.cs
- ProfilePropertySettings.cs
- RootAction.cs
- VisemeEventArgs.cs
- _IPv6Address.cs
- ColorConvertedBitmap.cs
- KerberosRequestorSecurityTokenAuthenticator.cs
- SiteMapNode.cs
- KeySplineConverter.cs
- ColorAnimationBase.cs
- DnsPermission.cs
- HttpCacheParams.cs
- Latin1Encoding.cs
- FrameworkElementAutomationPeer.cs
- DbConnectionHelper.cs
- TypedElement.cs
- DynamicMetaObject.cs
- QilLoop.cs
- SemanticTag.cs
- SelectionRange.cs
- LinkDescriptor.cs
- XmlNavigatorStack.cs
- WpfPayload.cs
- querybuilder.cs
- DataConnectionHelper.cs
- ErrorHandler.cs
- StringUtil.cs
- MemberExpression.cs
- MethodAccessException.cs
- ObjectHelper.cs
- WebBrowsableAttribute.cs
- FileSystemEnumerable.cs
- IsolationInterop.cs
- FormViewUpdatedEventArgs.cs
- MethodAccessException.cs
- Bits.cs
- CssTextWriter.cs
- XmlSchemaObjectTable.cs
- ConditionValidator.cs
- DropShadowEffect.cs
- BitmapEffectInput.cs
- MinimizableAttributeTypeConverter.cs
- ArgumentNullException.cs
- XmlWriterDelegator.cs
- MetadataSource.cs
- FamilyMapCollection.cs
- ErrorActivity.cs
- TextPattern.cs
- BitArray.cs
- ListViewVirtualItemsSelectionRangeChangedEvent.cs
- UIElement.cs