Code:
/ 4.0 / 4.0 / untmp / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / WinForms / Managed / System / WinForms / ToolStripItemImageRenderEventArgs.cs / 1305376 / 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.
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- LinqExpressionNormalizer.cs
- PropertyStore.cs
- FillErrorEventArgs.cs
- OrthographicCamera.cs
- CqlQuery.cs
- ReachPrintTicketSerializer.cs
- ValidationHelper.cs
- DispatcherObject.cs
- WindowsToolbarAsMenu.cs
- GeometryGroup.cs
- Debugger.cs
- VectorValueSerializer.cs
- ToolStripDropDownItemDesigner.cs
- PageAsyncTaskManager.cs
- InvokeMethodDesigner.xaml.cs
- WebPartEditorApplyVerb.cs
- HtmlControl.cs
- DataGridViewRowCancelEventArgs.cs
- ProcessDesigner.cs
- VerticalAlignConverter.cs
- ProcessThreadCollection.cs
- JulianCalendar.cs
- HtmlControlPersistable.cs
- EntityClassGenerator.cs
- ContentTextAutomationPeer.cs
- HttpProfileBase.cs
- ErrorHandlerModule.cs
- SerializerDescriptor.cs
- HttpHandlerAction.cs
- Axis.cs
- TransformGroup.cs
- EdmRelationshipRoleAttribute.cs
- ActiveDocumentEvent.cs
- FilterableAttribute.cs
- DynamicRendererThreadManager.cs
- DocumentViewerBase.cs
- SoapIncludeAttribute.cs
- SerTrace.cs
- IndicCharClassifier.cs
- EmitterCache.cs
- XmlNodeChangedEventArgs.cs
- DiagnosticsConfigurationHandler.cs
- MonikerProxyAttribute.cs
- MailDefinition.cs
- CompleteWizardStep.cs
- assemblycache.cs
- MdImport.cs
- RoleGroup.cs
- WindowsFormsLinkLabel.cs
- DefaultPropertyAttribute.cs
- BrowserDefinition.cs
- PhysicalOps.cs
- NullableDoubleMinMaxAggregationOperator.cs
- MultiBindingExpression.cs
- SimpleTypeResolver.cs
- ReadOnlyHierarchicalDataSource.cs
- DataGridViewBand.cs
- SinglePageViewer.cs
- CollaborationHelperFunctions.cs
- CodeIdentifier.cs
- ChannelSettingsElement.cs
- RolePrincipal.cs
- AstTree.cs
- ProxyAttribute.cs
- SortExpressionBuilder.cs
- XamlReaderHelper.cs
- ResolveMatchesMessage11.cs
- WebPartEditorOkVerb.cs
- ForEachDesigner.xaml.cs
- EditingCoordinator.cs
- ListItemConverter.cs
- InputScopeConverter.cs
- ControllableStoryboardAction.cs
- PolicyException.cs
- MouseBinding.cs
- SqlDataSource.cs
- TracePayload.cs
- ColorInterpolationModeValidation.cs
- DesignerForm.cs
- IntSecurity.cs
- RawKeyboardInputReport.cs
- GetWinFXPath.cs
- RootBuilder.cs
- ListViewDesigner.cs
- QilLoop.cs
- PenContext.cs
- MultiBindingExpression.cs
- WindowsComboBox.cs
- PrintControllerWithStatusDialog.cs
- ClientConfigurationSystem.cs
- StringConverter.cs
- HatchBrush.cs
- Schema.cs
- remotingproxy.cs
- DocumentXPathNavigator.cs
- PagerSettings.cs
- ConnectionInterfaceCollection.cs
- TransformerTypeCollection.cs
- ProfileModule.cs
- ContravarianceAdapter.cs