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
- TracePayload.cs
- SubMenuStyleCollectionEditor.cs
- ConfigurationSettings.cs
- LinearGradientBrush.cs
- DetailsViewDeleteEventArgs.cs
- SettingsAttributeDictionary.cs
- DataReceivedEventArgs.cs
- ZipIOBlockManager.cs
- LinqDataView.cs
- EntityDataSourceState.cs
- RepeaterCommandEventArgs.cs
- DataObjectMethodAttribute.cs
- CachedPathData.cs
- ListChangedEventArgs.cs
- SystemTcpStatistics.cs
- InvalidEnumArgumentException.cs
- WebSysDefaultValueAttribute.cs
- SimpleRecyclingCache.cs
- TextureBrush.cs
- ProfileParameter.cs
- AuthenticationServiceManager.cs
- ReadOnlyDataSource.cs
- altserialization.cs
- TextBreakpoint.cs
- ZipIOLocalFileDataDescriptor.cs
- NonBatchDirectoryCompiler.cs
- CodePageEncoding.cs
- XPathScanner.cs
- EditorAttribute.cs
- GregorianCalendar.cs
- ProfileManager.cs
- RepeatBehavior.cs
- Binding.cs
- WmiInstallComponent.cs
- Inline.cs
- TrackPointCollection.cs
- SqlNotificationEventArgs.cs
- InputReferenceExpression.cs
- SystemUnicastIPAddressInformation.cs
- DataGridViewColumnHeaderCell.cs
- SafePointer.cs
- IdentityReference.cs
- SetState.cs
- SqlSupersetValidator.cs
- PageParserFilter.cs
- FileLoadException.cs
- IdlingCommunicationPool.cs
- Query.cs
- ClientCultureInfo.cs
- DependencyPropertyKind.cs
- UInt64.cs
- TextCompositionEventArgs.cs
- XamlHostingConfiguration.cs
- Paragraph.cs
- ArgumentReference.cs
- KeyGesture.cs
- DescriptionAttribute.cs
- HostProtectionException.cs
- FastPropertyAccessor.cs
- DocumentXPathNavigator.cs
- Int16Storage.cs
- BrowserCapabilitiesFactory.cs
- PkcsMisc.cs
- WebPartDisplayModeCollection.cs
- NavigationCommands.cs
- GroupBoxAutomationPeer.cs
- NativeMethods.cs
- SqlError.cs
- TextDecorations.cs
- SelectedCellsChangedEventArgs.cs
- ScrollData.cs
- Expression.cs
- DescendentsWalkerBase.cs
- MonthCalendar.cs
- ContentPosition.cs
- SplineKeyFrames.cs
- RoleGroupCollection.cs
- InputScopeManager.cs
- WebHttpBinding.cs
- OwnerDrawPropertyBag.cs
- ListControl.cs
- WasAdminWrapper.cs
- Command.cs
- VirtualizingStackPanel.cs
- UpdateRecord.cs
- SqlExpander.cs
- XXXOnTypeBuilderInstantiation.cs
- PageCache.cs
- CacheDependency.cs
- PreviewPageInfo.cs
- brushes.cs
- RequiredFieldValidator.cs
- JsonServiceDocumentSerializer.cs
- BitmapSourceSafeMILHandle.cs
- RoutedCommand.cs
- FactoryRecord.cs
- WebPartRestoreVerb.cs
- _TimerThread.cs
- columnmapfactory.cs
- GridViewDesigner.cs