Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / whidbey / NetFxQFE / 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
![Network programming in C#, Network Programming in VB.NET, Network Programming in .NET](/images/book.jpg)
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- ImageButton.cs
- NameValueCollection.cs
- PanelDesigner.cs
- XMLSchema.cs
- DependencyStoreSurrogate.cs
- NavigationPropertySingletonExpression.cs
- DataGridColumnHeaderAutomationPeer.cs
- PackageDigitalSignatureManager.cs
- HtmlInputFile.cs
- OdbcInfoMessageEvent.cs
- ToolStripHighContrastRenderer.cs
- ByteConverter.cs
- DbgUtil.cs
- InputProcessorProfiles.cs
- SqlBinder.cs
- StateMachineWorkflowDesigner.cs
- Parsers.cs
- BuildTopDownAttribute.cs
- StructuredCompositeActivityDesigner.cs
- TextRunCache.cs
- UnionCodeGroup.cs
- ClientTarget.cs
- SafeHandle.cs
- DbSourceCommand.cs
- WebServiceReceiveDesigner.cs
- GeneralTransform3D.cs
- ScrollBar.cs
- WebConfigurationHostFileChange.cs
- PriorityBindingExpression.cs
- EventTrigger.cs
- ConfigurationPermission.cs
- XmlNullResolver.cs
- ScopeElementCollection.cs
- CallSite.cs
- PathGeometry.cs
- XhtmlBasicPhoneCallAdapter.cs
- KnownBoxes.cs
- Help.cs
- CodeVariableDeclarationStatement.cs
- WindowsListViewItem.cs
- ToolBar.cs
- HttpListener.cs
- DocumentPageTextView.cs
- Attributes.cs
- CoTaskMemHandle.cs
- ToolStripOverflow.cs
- MemberCollection.cs
- PeerToPeerException.cs
- WebPartActionVerb.cs
- NavigationPropertyEmitter.cs
- PasswordTextNavigator.cs
- PageContentCollection.cs
- ArgIterator.cs
- UnauthorizedWebPart.cs
- DiffuseMaterial.cs
- TabControlToolboxItem.cs
- XmlAnyElementAttributes.cs
- ObjectStateEntryDbDataRecord.cs
- ErrorRuntimeConfig.cs
- ConnectionInterfaceCollection.cs
- XPathNavigatorReader.cs
- Parameter.cs
- Vector.cs
- WebZone.cs
- SafeNativeMethodsOther.cs
- FormView.cs
- X509IssuerSerialKeyIdentifierClause.cs
- MatrixAnimationUsingKeyFrames.cs
- WmpBitmapDecoder.cs
- PersonalizableAttribute.cs
- SecurityPermission.cs
- XmlWellformedWriter.cs
- ProfileParameter.cs
- FormatterServices.cs
- CacheSection.cs
- QilPatternVisitor.cs
- TypeDescriptorFilterService.cs
- GPRECT.cs
- TraceUtils.cs
- PingReply.cs
- DecimalAnimation.cs
- CounterNameConverter.cs
- DependentList.cs
- DataTable.cs
- PreviewPageInfo.cs
- NotificationContext.cs
- EdmRelationshipRoleAttribute.cs
- HttpListenerContext.cs
- ColorEditor.cs
- IsolatedStorageFileStream.cs
- PrintPreviewControl.cs
- TransmissionStrategy.cs
- XhtmlConformanceSection.cs
- ProfileSettingsCollection.cs
- DispatcherHooks.cs
- GenericParameterDataContract.cs
- CustomDictionarySources.cs
- CodeAttributeDeclarationCollection.cs
- PreservationFileWriter.cs
- MsmqChannelFactory.cs