Code:
/ FX-1434 / FX-1434 / 1.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
- WebSysDescriptionAttribute.cs
- WebPartCatalogCloseVerb.cs
- SqlBuilder.cs
- AnimationClock.cs
- TextParagraphCache.cs
- ServiceMemoryGates.cs
- Transform3D.cs
- CapabilitiesSection.cs
- ObjectItemNoOpAssemblyLoader.cs
- SubMenuStyleCollection.cs
- ResolveCriteriaCD1.cs
- AccessibleObject.cs
- EnvelopedPkcs7.cs
- BackStopAuthenticationModule.cs
- SecurityKeyIdentifier.cs
- SerialPinChanges.cs
- WebInvokeAttribute.cs
- ExpressionVisitorHelpers.cs
- FileUpload.cs
- SessionStateUtil.cs
- Message.cs
- ClassHandlersStore.cs
- CloudCollection.cs
- DebuggerAttributes.cs
- SqlConnectionPoolProviderInfo.cs
- HtmlUtf8RawTextWriter.cs
- Label.cs
- FileSystemInfo.cs
- ParameterEditorUserControl.cs
- ResizingMessageFilter.cs
- ImageIndexConverter.cs
- SchemaElementDecl.cs
- RepeatButtonAutomationPeer.cs
- SymLanguageVendor.cs
- TextParagraphCache.cs
- MapPathBasedVirtualPathProvider.cs
- ApplicationServicesHostFactory.cs
- Object.cs
- DataControlPagerLinkButton.cs
- PrimitiveXmlSerializers.cs
- XmlNodeReader.cs
- DataStreamFromComStream.cs
- Crypto.cs
- UnSafeCharBuffer.cs
- PagesChangedEventArgs.cs
- messageonlyhwndwrapper.cs
- DispatcherOperation.cs
- FullTextState.cs
- MatrixAnimationUsingKeyFrames.cs
- ReferencedCollectionType.cs
- MessagePropertyDescriptionCollection.cs
- TcpTransportSecurity.cs
- BindingExpressionBase.cs
- ImmComposition.cs
- BoundColumn.cs
- Membership.cs
- AvtEvent.cs
- FormsAuthenticationCredentials.cs
- TextCompositionEventArgs.cs
- FileNotFoundException.cs
- DesignParameter.cs
- EarlyBoundInfo.cs
- DateTimeOffsetAdapter.cs
- SafeLocalAllocation.cs
- ExtensionSimplifierMarkupObject.cs
- Cursor.cs
- TimerElapsedEvenArgs.cs
- XmlSchemaComplexContentExtension.cs
- StructuredTypeEmitter.cs
- HttpResponseInternalBase.cs
- DesignerWidgets.cs
- RemoteWebConfigurationHostServer.cs
- DataGridViewRowEventArgs.cs
- NativeMethodsOther.cs
- ClockGroup.cs
- RightsManagementInformation.cs
- XPathQueryGenerator.cs
- ContextMenu.cs
- MetaType.cs
- TransformerConfigurationWizardBase.cs
- InternalConfigRoot.cs
- CharEntityEncoderFallback.cs
- WrappedIUnknown.cs
- DependsOnAttribute.cs
- TransportSecurityProtocolFactory.cs
- DesignerVerb.cs
- Token.cs
- ColorKeyFrameCollection.cs
- FSWPathEditor.cs
- DeferredTextReference.cs
- PropertiesTab.cs
- SerializationObjectManager.cs
- XsdDateTime.cs
- MemberBinding.cs
- MessageSecurityProtocolFactory.cs
- CleanUpVirtualizedItemEventArgs.cs
- IdnMapping.cs
- TransactionFlowBindingElement.cs
- ThreadAttributes.cs
- MD5.cs