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
- Compilation.cs
- ToolstripProfessionalRenderer.cs
- NamedPipeProcessProtocolHandler.cs
- FixedHighlight.cs
- RecognizeCompletedEventArgs.cs
- ColorConverter.cs
- SwitchElementsCollection.cs
- LocatorBase.cs
- Single.cs
- EmptyEnumerable.cs
- UxThemeWrapper.cs
- UniqueIdentifierService.cs
- Model3D.cs
- SemaphoreFullException.cs
- MenuItem.cs
- TreeView.cs
- ListBoxAutomationPeer.cs
- Bezier.cs
- FixedElement.cs
- WsatServiceAddress.cs
- WinFormsUtils.cs
- AssemblyResourceLoader.cs
- SizeAnimationUsingKeyFrames.cs
- Completion.cs
- ParseNumbers.cs
- RequestUriProcessor.cs
- CalloutQueueItem.cs
- MultipartIdentifier.cs
- RouteValueDictionary.cs
- DelegateHelpers.cs
- NotifyCollectionChangedEventArgs.cs
- AuthStoreRoleProvider.cs
- AttachInfo.cs
- XmlSchemaImport.cs
- DiagnosticTraceSchemas.cs
- NameScope.cs
- Visual.cs
- DES.cs
- SystemColors.cs
- ConfigurationStrings.cs
- CacheRequest.cs
- SerializerDescriptor.cs
- ScriptMethodAttribute.cs
- X509Utils.cs
- XmlNodeChangedEventArgs.cs
- InfoCardRSACryptoProvider.cs
- GenericPrincipal.cs
- WmlPageAdapter.cs
- StoreItemCollection.cs
- PageVisual.cs
- EdmSchemaError.cs
- ListViewPagedDataSource.cs
- AnnotationMap.cs
- Int32CollectionConverter.cs
- CommandID.cs
- DataListItemCollection.cs
- PrintDocument.cs
- TextStore.cs
- Debug.cs
- MailWebEventProvider.cs
- MoveSizeWinEventHandler.cs
- ServerValidateEventArgs.cs
- ListBase.cs
- CssStyleCollection.cs
- WindowsGrip.cs
- ReaderContextStackData.cs
- AdapterUtil.cs
- ConsoleCancelEventArgs.cs
- SHA512Managed.cs
- LinqDataView.cs
- _SslSessionsCache.cs
- SoapIgnoreAttribute.cs
- HandlerFactoryWrapper.cs
- MeshGeometry3D.cs
- CodeDefaultValueExpression.cs
- ToolStripManager.cs
- TextCharacters.cs
- ObjectDataSourceMethodEditor.cs
- COM2IDispatchConverter.cs
- WindowsRichEditRange.cs
- SqlAggregateChecker.cs
- DescriptionAttribute.cs
- ErrorFormatter.cs
- HostingPreferredMapPath.cs
- Panel.cs
- DomainConstraint.cs
- ProtectedConfigurationSection.cs
- BufferModeSettings.cs
- CultureInfoConverter.cs
- DbTransaction.cs
- EntitySetBase.cs
- ReadOnlyDictionary.cs
- EmptyElement.cs
- PermissionRequestEvidence.cs
- ListViewCommandEventArgs.cs
- RightNameExpirationInfoPair.cs
- LoginCancelEventArgs.cs
- SolidBrush.cs
- BulletChrome.cs
- AnimationTimeline.cs