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
- HwndSource.cs
- DBConnection.cs
- NetworkCredential.cs
- DesignTimeTemplateParser.cs
- DockPatternIdentifiers.cs
- RectAnimationUsingKeyFrames.cs
- DSACryptoServiceProvider.cs
- XmlSchemaNotation.cs
- KeyConstraint.cs
- SyndicationSerializer.cs
- SpinWait.cs
- CheckBoxRenderer.cs
- ObjectParameterCollection.cs
- ConnectionProviderAttribute.cs
- BatchParser.cs
- HandleCollector.cs
- ConfigurationStrings.cs
- PrintEvent.cs
- ToolStripProfessionalLowResolutionRenderer.cs
- VScrollBar.cs
- RawStylusSystemGestureInputReport.cs
- WorkflowServiceInstance.cs
- SystemIcons.cs
- SqlDataSourceSelectingEventArgs.cs
- Double.cs
- UnitySerializationHolder.cs
- IChannel.cs
- Operators.cs
- DataGridRelationshipRow.cs
- GenericArgumentsUpdater.cs
- AccessText.cs
- HttpPostedFile.cs
- ErrorWebPart.cs
- SByteStorage.cs
- EmptyTextWriter.cs
- RedBlackList.cs
- WindowsListViewGroupHelper.cs
- EmbeddedMailObject.cs
- ValueConversionAttribute.cs
- webeventbuffer.cs
- SizeValueSerializer.cs
- TagPrefixInfo.cs
- ProcessInfo.cs
- SecUtil.cs
- panel.cs
- DictionarySectionHandler.cs
- SocketStream.cs
- ScriptResourceAttribute.cs
- SettingsProperty.cs
- ChannelDispatcherBase.cs
- ClientTarget.cs
- ClipboardData.cs
- SchemaAttDef.cs
- TextBounds.cs
- OutputCacheSection.cs
- Keywords.cs
- DataListItemEventArgs.cs
- SqlException.cs
- SerializationInfoEnumerator.cs
- WorkflowHostingResponseContext.cs
- MediaSystem.cs
- ThemeConfigurationDialog.cs
- ExecutionEngineException.cs
- ParameterToken.cs
- AccessibleObject.cs
- PropertyConverter.cs
- XmlUtf8RawTextWriter.cs
- StopStoryboard.cs
- MILUtilities.cs
- sqlstateclientmanager.cs
- ToolStripHighContrastRenderer.cs
- UpdateExpressionVisitor.cs
- util.cs
- PrintControllerWithStatusDialog.cs
- BordersPage.cs
- WebPartConnectionCollection.cs
- PolicyStatement.cs
- TraceProvider.cs
- AutomationProperties.cs
- x509store.cs
- SystemInfo.cs
- FixedSOMContainer.cs
- FormsAuthenticationModule.cs
- PrinterUnitConvert.cs
- Executor.cs
- ToolStripDropDownClosingEventArgs.cs
- MetadataItemCollectionFactory.cs
- RuleInfoComparer.cs
- NodeInfo.cs
- COM2IDispatchConverter.cs
- Size.cs
- Emitter.cs
- DataExpression.cs
- DataSpaceManager.cs
- InputLanguageEventArgs.cs
- Vector3DValueSerializer.cs
- Base64Decoder.cs
- StreamReader.cs
- DataListGeneralPage.cs
- PrintDialogException.cs