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
- KeyInterop.cs
- MemberPath.cs
- OneWayBindingElementImporter.cs
- ColorContextHelper.cs
- RC2.cs
- WebBrowser.cs
- Message.cs
- LogReservationCollection.cs
- EqualityArray.cs
- DataSourceSerializationException.cs
- Rotation3DAnimationBase.cs
- XmlNodeComparer.cs
- CodeBlockBuilder.cs
- UnsafeNativeMethods.cs
- WindowsToolbarAsMenu.cs
- PackWebRequest.cs
- IsolatedStorage.cs
- NegatedCellConstant.cs
- FunctionCommandText.cs
- SqlCrossApplyToCrossJoin.cs
- DesignerUtils.cs
- SmtpReplyReaderFactory.cs
- ThaiBuddhistCalendar.cs
- SqlClientWrapperSmiStreamChars.cs
- CardSpacePolicyElement.cs
- DataGridViewHeaderCell.cs
- FactoryMaker.cs
- EventLogPermissionEntryCollection.cs
- ProgramPublisher.cs
- XpsS0ValidatingLoader.cs
- DataGrid.cs
- StrokeCollectionDefaultValueFactory.cs
- Int64Converter.cs
- AnimationStorage.cs
- MouseGestureValueSerializer.cs
- SecurityPolicySection.cs
- HttpApplication.cs
- ModuleElement.cs
- FaultImportOptions.cs
- Merger.cs
- cache.cs
- ItemsPanelTemplate.cs
- SafeCryptContextHandle.cs
- RepeaterDesigner.cs
- Encoder.cs
- DataServiceHostWrapper.cs
- SqlFileStream.cs
- WebHttpBindingElement.cs
- PlatformNotSupportedException.cs
- ConfigurationValidatorAttribute.cs
- BulletChrome.cs
- remotingproxy.cs
- Camera.cs
- BitmapEffectrendercontext.cs
- VectorAnimationUsingKeyFrames.cs
- activationcontext.cs
- MsmqIntegrationAppDomainProtocolHandler.cs
- BindingsCollection.cs
- KeyBinding.cs
- PathTooLongException.cs
- RelatedImageListAttribute.cs
- ComplexBindingPropertiesAttribute.cs
- WindowsAuthenticationModule.cs
- DefaultPerformanceCounters.cs
- ColorTransform.cs
- WindowsAuthenticationModule.cs
- BitmapEffectInputData.cs
- CryptoStream.cs
- ADConnectionHelper.cs
- ObjectDataSourceChooseTypePanel.cs
- ResourceReferenceExpressionConverter.cs
- Encoder.cs
- XmlWriter.cs
- FlowLayoutPanelDesigner.cs
- SafeProcessHandle.cs
- WebPartConnectionsConnectVerb.cs
- StringValidatorAttribute.cs
- ConfigurationSettings.cs
- DayRenderEvent.cs
- COM2PictureConverter.cs
- HostedImpersonationContext.cs
- BoolExpr.cs
- WaitingCursor.cs
- QuaternionAnimation.cs
- ProfilePropertySettingsCollection.cs
- StructuralObject.cs
- VScrollBar.cs
- EntityDataSource.cs
- WebPartConnectionsCancelEventArgs.cs
- QuaternionRotation3D.cs
- TCPClient.cs
- ReadOnlyNameValueCollection.cs
- FileDialogPermission.cs
- QuaternionRotation3D.cs
- invalidudtexception.cs
- ThaiBuddhistCalendar.cs
- ScrollChrome.cs
- BulletChrome.cs
- CustomAttributeBuilder.cs
- Converter.cs