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
- ContentElementAutomationPeer.cs
- InteropBitmapSource.cs
- ContainerSelectorBehavior.cs
- Path.cs
- SystemIPAddressInformation.cs
- DelimitedListTraceListener.cs
- TypeInfo.cs
- TraceHandlerErrorFormatter.cs
- TypeBrowser.xaml.cs
- AutoResetEvent.cs
- PrinterResolution.cs
- Socket.cs
- SetStoryboardSpeedRatio.cs
- AffineTransform3D.cs
- QilPatternFactory.cs
- XsdBuildProvider.cs
- GeneralTransform3D.cs
- BooleanProjectedSlot.cs
- CultureInfoConverter.cs
- SiteMembershipCondition.cs
- CommonDialog.cs
- ResXResourceReader.cs
- dsa.cs
- IssuedTokenParametersElement.cs
- WindowsFormsHostPropertyMap.cs
- SecurityRuntime.cs
- HwndSource.cs
- TextEffect.cs
- XmlAttributeCollection.cs
- EventRecord.cs
- MemberNameValidator.cs
- ISFClipboardData.cs
- TokenBasedSet.cs
- ValueUtilsSmi.cs
- ClientTargetCollection.cs
- MutexSecurity.cs
- BamlWriter.cs
- EncodingNLS.cs
- SQLResource.cs
- ToolboxItemFilterAttribute.cs
- GeneralTransform.cs
- CaseInsensitiveOrdinalStringComparer.cs
- GridItemCollection.cs
- TextTreeRootNode.cs
- RubberbandSelector.cs
- KeyValuePairs.cs
- CustomAttributeFormatException.cs
- CompiledXpathExpr.cs
- ExpanderAutomationPeer.cs
- TextSchema.cs
- RemotingAttributes.cs
- ClickablePoint.cs
- Viewport3DAutomationPeer.cs
- BinaryObjectInfo.cs
- ResolveMatchesApril2005.cs
- infer.cs
- RecordBuilder.cs
- CodeArrayCreateExpression.cs
- AppDomainShutdownMonitor.cs
- UIElement3DAutomationPeer.cs
- BitmapEffectGeneralTransform.cs
- InputQueue.cs
- Content.cs
- RootAction.cs
- DataSourceHelper.cs
- InitializerFacet.cs
- ContentPropertyAttribute.cs
- UniqueIdentifierService.cs
- CustomErrorsSectionWrapper.cs
- RegexRunnerFactory.cs
- AnnotationAdorner.cs
- MatrixStack.cs
- DragCompletedEventArgs.cs
- SubpageParagraph.cs
- Baml2006KeyRecord.cs
- SmiTypedGetterSetter.cs
- ArrayListCollectionBase.cs
- AnchoredBlock.cs
- RelationshipEndMember.cs
- _BaseOverlappedAsyncResult.cs
- DataGridViewLinkColumn.cs
- EmptyEnumerator.cs
- _SafeNetHandles.cs
- DetailsViewUpdateEventArgs.cs
- DebuggerAttributes.cs
- ImportContext.cs
- LocatorManager.cs
- RuntimeResourceSet.cs
- TraceHwndHost.cs
- XmlDataSourceNodeDescriptor.cs
- httpapplicationstate.cs
- TextLineBreak.cs
- PageAsyncTask.cs
- Delegate.cs
- SqlDataSource.cs
- ExpandableObjectConverter.cs
- MulticastNotSupportedException.cs
- SystemIPGlobalProperties.cs
- Vector3DConverter.cs
- AttachedPropertyMethodSelector.cs