Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / whidbey / NetFXspW7 / 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. // //----------------------------------------------------------------------------- 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.
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- FrameworkContentElement.cs
- UnsafeNativeMethods.cs
- ReadingWritingEntityEventArgs.cs
- WebResourceAttribute.cs
- Object.cs
- ConfigurationElementProperty.cs
- CqlErrorHelper.cs
- InheritanceUI.cs
- RemotingConfigParser.cs
- baseaxisquery.cs
- CreateRefExpr.cs
- DecryptRequest.cs
- LoginCancelEventArgs.cs
- MetadataArtifactLoaderCompositeFile.cs
- _OverlappedAsyncResult.cs
- SoapAttributeOverrides.cs
- PolicyException.cs
- ObjectRef.cs
- SmiMetaData.cs
- SHA512.cs
- EdmItemError.cs
- FindCriteriaApril2005.cs
- RadioButton.cs
- OverflowException.cs
- XmlObjectSerializerReadContextComplexJson.cs
- ViewStateAttachedPropertyFeature.cs
- ipaddressinformationcollection.cs
- OdbcConnectionHandle.cs
- LexicalChunk.cs
- Panel.cs
- DataErrorValidationRule.cs
- TabletCollection.cs
- DispatcherEventArgs.cs
- AsyncCompletedEventArgs.cs
- AssociationProvider.cs
- View.cs
- TextTreeTextBlock.cs
- HashCodeCombiner.cs
- cryptoapiTransform.cs
- DBDataPermissionAttribute.cs
- WebPartCollection.cs
- MenuAdapter.cs
- TypeConverterHelper.cs
- PropertyValue.cs
- XPathBinder.cs
- DatePicker.cs
- PerformanceCounterManager.cs
- XmlILModule.cs
- PropVariant.cs
- DateTimeOffsetStorage.cs
- ProxyWebPartConnectionCollection.cs
- RbTree.cs
- IDReferencePropertyAttribute.cs
- XamlRtfConverter.cs
- ConfigurationStrings.cs
- ObservableCollectionDefaultValueFactory.cs
- DefaultSection.cs
- XmlFormatWriterGenerator.cs
- WebPartExportVerb.cs
- GlyphShapingProperties.cs
- NativeMethods.cs
- StatusBar.cs
- ZipIOLocalFileBlock.cs
- QueryOutputWriterV1.cs
- CodeArrayIndexerExpression.cs
- TreeViewImageIndexConverter.cs
- ActiveXSite.cs
- AliasedSlot.cs
- httpstaticobjectscollection.cs
- ErrorWebPart.cs
- XmlEncodedRawTextWriter.cs
- IFormattable.cs
- WebBrowserHelper.cs
- TaskSchedulerException.cs
- XmlSchemaInfo.cs
- AVElementHelper.cs
- XmlQualifiedNameTest.cs
- XPathNodeHelper.cs
- DateRangeEvent.cs
- KeyProperty.cs
- remotingproxy.cs
- embossbitmapeffect.cs
- AdornerHitTestResult.cs
- QilUnary.cs
- ProviderConnectionPointCollection.cs
- FixUp.cs
- SingleStorage.cs
- TextDecoration.cs
- StringInfo.cs
- BaseProcessor.cs
- SHA1.cs
- FacetDescription.cs
- OLEDB_Enum.cs
- UriSection.cs
- InternalBufferOverflowException.cs
- PlatformNotSupportedException.cs
- SqlCacheDependencyDatabase.cs
- OdbcReferenceCollection.cs
- CacheDict.cs
- FileAuthorizationModule.cs