Code:
/ DotNET / DotNET / 8.0 / untmp / whidbey / REDBITS / ndp / fx / src / WinForms / Managed / System / WinForms / ToolStripItemImageRenderEventArgs.cs / 1 / 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. // Copyright (c) Microsoft Corporation. All rights reserved.
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- InstanceDescriptor.cs
- MessageSmuggler.cs
- ByteAnimation.cs
- CheckStoreFileValidityRequest.cs
- initElementDictionary.cs
- HiddenField.cs
- AutomationIdentifier.cs
- RequestCache.cs
- ImageButton.cs
- CalendarAutomationPeer.cs
- FormViewActionList.cs
- StyleXamlParser.cs
- AsyncOperationManager.cs
- TreeNodeBindingCollection.cs
- MenuCommands.cs
- CheckoutException.cs
- RegistryExceptionHelper.cs
- ACE.cs
- CryptoStream.cs
- DbQueryCommandTree.cs
- ItemsPanelTemplate.cs
- StateManagedCollection.cs
- LayoutSettings.cs
- Brush.cs
- PointF.cs
- ClientScriptManagerWrapper.cs
- DigitalSignature.cs
- TextParagraphCache.cs
- CryptoApi.cs
- iisPickupDirectory.cs
- XdrBuilder.cs
- CharEnumerator.cs
- AppDomainManager.cs
- SqlConnectionPoolGroupProviderInfo.cs
- SqlBulkCopy.cs
- TreeView.cs
- WorkflowMarkupSerializationProvider.cs
- IconConverter.cs
- ClientTargetCollection.cs
- ScriptResourceInfo.cs
- BinaryNode.cs
- XmlNodeReader.cs
- HttpListenerRequestUriBuilder.cs
- RelOps.cs
- DefaultValueAttribute.cs
- Int16.cs
- CaseCqlBlock.cs
- DesignerToolStripControlHost.cs
- SubstitutionList.cs
- Utility.cs
- GeometryHitTestParameters.cs
- RangeValidator.cs
- URLAttribute.cs
- XmlDataProvider.cs
- XmlSchemaSimpleTypeList.cs
- DefaultValidator.cs
- OutputWindow.cs
- DateTimeConstantAttribute.cs
- GroupQuery.cs
- PluralizationService.cs
- AccessDataSource.cs
- SchemaTypeEmitter.cs
- FormClosedEvent.cs
- Run.cs
- Buffer.cs
- SslSecurityTokenParameters.cs
- dbdatarecord.cs
- IndexOutOfRangeException.cs
- StateRuntime.cs
- RequestCacheEntry.cs
- PolicyConversionContext.cs
- ConnectionPoint.cs
- SecureEnvironment.cs
- RuntimeIdentifierPropertyAttribute.cs
- LineServices.cs
- IProvider.cs
- PropertyGridEditorPart.cs
- ScriptRef.cs
- TripleDES.cs
- CompressStream.cs
- HttpWebRequest.cs
- ConnectionPoolManager.cs
- XamlStream.cs
- OrderedDictionaryStateHelper.cs
- ToolTipAutomationPeer.cs
- QilPatternVisitor.cs
- DataList.cs
- NetworkInformationPermission.cs
- SystemDiagnosticsSection.cs
- HashUtility.cs
- PriorityChain.cs
- _PooledStream.cs
- EncryptedPackage.cs
- StateMachineDesignerPaint.cs
- ExtendedPropertyInfo.cs
- Padding.cs
- InfoCardBinaryReader.cs
- ImageAutomationPeer.cs
- XmlBinaryReader.cs
- ProfileEventArgs.cs