Code:
/ 4.0 / 4.0 / untmp / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / WinForms / Managed / System / WinForms / ToolStripItemImageRenderEventArgs.cs / 1305376 / ToolStripItemImageRenderEventArgs.cs
//------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------------------- namespace System.Windows.Forms { using System.Drawing; ////// public class ToolStripItemImageRenderEventArgs : ToolStripItemRenderEventArgs { private Image image = null; private Rectangle imageRectangle = Rectangle.Empty; private bool shiftOnPress = false; public ToolStripItemImageRenderEventArgs(Graphics g, ToolStripItem item, Rectangle imageRectangle) : base(g, item) { this.image = (item.RightToLeftAutoMirrorImage && (item.RightToLeft == RightToLeft.Yes)) ? item.MirroredImage : item.Image; this.imageRectangle = imageRectangle; } /// /// /// This class represents all the information to render the winbar /// public ToolStripItemImageRenderEventArgs(Graphics g, ToolStripItem item, Image image, Rectangle imageRectangle) : base(g, item) { this.image = image; this.imageRectangle = imageRectangle; } ////// /// the string to draw /// public Image Image { get { return image; } } ////// /// the rectangle to draw the Image in /// public Rectangle ImageRectangle { get { return imageRectangle; } } // not public as it currently pertains to button & system renderer. internal bool ShiftOnPress { get { return shiftOnPress; } set { shiftOnPress = 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
- SQLDouble.cs
- RoleGroup.cs
- XmlCDATASection.cs
- ToolStripSystemRenderer.cs
- EntityProviderFactory.cs
- DesignerCategoryAttribute.cs
- PropertyInfoSet.cs
- VirtualPathProvider.cs
- ISAPIApplicationHost.cs
- XmlEventCache.cs
- DesignerUtils.cs
- SqlServer2KCompatibilityCheck.cs
- OpenTypeLayoutCache.cs
- Geometry3D.cs
- EmbeddedMailObject.cs
- TableLayoutPanelBehavior.cs
- DynamicFilterExpression.cs
- PageParserFilter.cs
- InputLangChangeEvent.cs
- RegionIterator.cs
- UTF32Encoding.cs
- SamlAudienceRestrictionCondition.cs
- XmlDataSourceNodeDescriptor.cs
- GeneralTransformGroup.cs
- MatchingStyle.cs
- UIElementParagraph.cs
- LineSegment.cs
- WebPartsPersonalizationAuthorization.cs
- ScriptManagerProxy.cs
- PageContentAsyncResult.cs
- EdmEntityTypeAttribute.cs
- odbcmetadatacollectionnames.cs
- WindowsFormsDesignerOptionService.cs
- Vector.cs
- XmlQueryCardinality.cs
- InstancePersistenceEvent.cs
- MappingItemCollection.cs
- MenuItemBindingCollection.cs
- Timeline.cs
- PersonalizationDictionary.cs
- EdmValidator.cs
- MatrixTransform.cs
- EventToken.cs
- ProtectedConfiguration.cs
- Scheduling.cs
- MailAddressCollection.cs
- DataViewListener.cs
- ServiceReference.cs
- SHA512.cs
- safelink.cs
- SymbolMethod.cs
- MouseDevice.cs
- DashStyles.cs
- DataSourceControlBuilder.cs
- NumericExpr.cs
- FixedSOMGroup.cs
- DataGridCellAutomationPeer.cs
- RectAnimation.cs
- ToolStripManager.cs
- LinkClickEvent.cs
- SubpageParaClient.cs
- ButtonChrome.cs
- Validator.cs
- TextRangeAdaptor.cs
- Profiler.cs
- ScriptHandlerFactory.cs
- Schema.cs
- ImageFormat.cs
- ExtensionDataReader.cs
- BuilderPropertyEntry.cs
- WizardStepCollectionEditor.cs
- PreviewPageInfo.cs
- ModelUIElement3D.cs
- XmlSchemaProviderAttribute.cs
- PositiveTimeSpanValidator.cs
- XPathAncestorIterator.cs
- DataServices.cs
- CqlLexer.cs
- WebPartConnectionsConnectVerb.cs
- PropertyMapper.cs
- XmlKeywords.cs
- TcpTransportManager.cs
- BaseInfoTable.cs
- EventSinkActivity.cs
- DelayedRegex.cs
- AsymmetricSignatureFormatter.cs
- SiteMapHierarchicalDataSourceView.cs
- DbDeleteCommandTree.cs
- MethodImplAttribute.cs
- CallbackHandler.cs
- AutoResetEvent.cs
- EpmContentDeSerializer.cs
- LocatorPart.cs
- MonthChangedEventArgs.cs
- AdapterUtil.cs
- AsyncSerializedWorker.cs
- SafeEventLogReadHandle.cs
- CompareValidator.cs
- AssemblyBuilder.cs
- NameTable.cs