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
- ServiceModelConfigurationElementCollection.cs
- ColorConverter.cs
- AddInStore.cs
- UrlMappingsModule.cs
- EntityContainerRelationshipSet.cs
- CommandPlan.cs
- SurrogateDataContract.cs
- SystemTcpStatistics.cs
- Transform3D.cs
- DbConnectionOptions.cs
- HttpGetServerProtocol.cs
- BindUriHelper.cs
- Formatter.cs
- _ConnectStream.cs
- XmlKeywords.cs
- CompiledRegexRunnerFactory.cs
- TemplateNameScope.cs
- GroupItem.cs
- ZoneMembershipCondition.cs
- StorageMappingItemCollection.cs
- WebBrowserSiteBase.cs
- MailMessageEventArgs.cs
- ToolStripPanel.cs
- HtmlInputButton.cs
- WebBrowser.cs
- XmlArrayItemAttribute.cs
- ValueQuery.cs
- ColorTypeConverter.cs
- ServiceCredentialsSecurityTokenManager.cs
- ToolStripItemEventArgs.cs
- HtmlTextArea.cs
- SimpleBitVector32.cs
- AsyncMethodInvoker.cs
- XmlNodeChangedEventManager.cs
- AsyncContentLoadedEventArgs.cs
- SqlDataRecord.cs
- DateTimeValueSerializer.cs
- TimeSpanOrInfiniteValidator.cs
- XmlSchemaSimpleContent.cs
- ObjectSecurity.cs
- CurrentChangedEventManager.cs
- StreamGeometryContext.cs
- ColumnMapProcessor.cs
- ModifierKeysConverter.cs
- FontConverter.cs
- PageContentCollection.cs
- CardSpacePolicyElement.cs
- PerformanceCounterPermissionEntry.cs
- CodeTypeDeclaration.cs
- BinaryKeyIdentifierClause.cs
- XmlAttributeOverrides.cs
- JumpPath.cs
- EncoderBestFitFallback.cs
- TimeSpanMinutesOrInfiniteConverter.cs
- PrintController.cs
- ConnectionPointCookie.cs
- HtmlElementEventArgs.cs
- DataPagerField.cs
- XmlElementCollection.cs
- DisableDpiAwarenessAttribute.cs
- ContentType.cs
- ResourceBinder.cs
- VerificationException.cs
- ManualWorkflowSchedulerService.cs
- PersonalizationEntry.cs
- IdentityValidationException.cs
- AttachedPropertyBrowsableWhenAttributePresentAttribute.cs
- SymLanguageVendor.cs
- DataTableExtensions.cs
- ExportFileRequest.cs
- CodeSubDirectory.cs
- WebPartEventArgs.cs
- ProcessModelInfo.cs
- SecUtil.cs
- CompositeActivityTypeDescriptorProvider.cs
- BinaryParser.cs
- MultipartIdentifier.cs
- LongValidatorAttribute.cs
- Block.cs
- PtsContext.cs
- SQLSingle.cs
- InputReportEventArgs.cs
- FixedTextContainer.cs
- HttpClientCredentialType.cs
- RemoteWebConfigurationHost.cs
- HeaderedItemsControl.cs
- CalloutQueueItem.cs
- DescendantBaseQuery.cs
- MappedMetaModel.cs
- RecognizedWordUnit.cs
- Padding.cs
- CacheDependency.cs
- TransformPattern.cs
- OdbcConnectionHandle.cs
- DataStreamFromComStream.cs
- followingquery.cs
- XsdBuildProvider.cs
- MatrixConverter.cs
- InternalPermissions.cs
- SatelliteContractVersionAttribute.cs