Code:
/ FX-1434 / FX-1434 / 1.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
- OracleDataReader.cs
- DockingAttribute.cs
- ManagementBaseObject.cs
- EnumUnknown.cs
- DictionaryManager.cs
- GridViewCellAutomationPeer.cs
- SiteMapProvider.cs
- CapabilitiesAssignment.cs
- TabControlEvent.cs
- DesignerSerializationOptionsAttribute.cs
- DataSourceListEditor.cs
- EngineSiteSapi.cs
- DBSqlParserColumnCollection.cs
- TaiwanCalendar.cs
- PictureBox.cs
- Pair.cs
- CodeAttributeArgumentCollection.cs
- ClientFormsAuthenticationMembershipProvider.cs
- DataGridViewRowPostPaintEventArgs.cs
- XmlObjectSerializerContext.cs
- PersonalizationStateInfo.cs
- Aggregates.cs
- X509UI.cs
- NonVisualControlAttribute.cs
- ReachFixedDocumentSerializer.cs
- PropertyMapper.cs
- TokenizerHelper.cs
- Comparer.cs
- DataGridParentRows.cs
- Preprocessor.cs
- MSAAEventDispatcher.cs
- FormParameter.cs
- MLangCodePageEncoding.cs
- SafeProcessHandle.cs
- WindowsTooltip.cs
- SizeFConverter.cs
- WebScriptEnablingElement.cs
- UnsettableComboBox.cs
- FileDialogCustomPlacesCollection.cs
- MemberAssignmentAnalysis.cs
- XPathChildIterator.cs
- XmlSchemaFacet.cs
- AuthenticationService.cs
- IFlowDocumentViewer.cs
- RepeatBehaviorConverter.cs
- DirectionalLight.cs
- MenuAutomationPeer.cs
- SmiContextFactory.cs
- TransformerInfoCollection.cs
- XPathSingletonIterator.cs
- XmlCDATASection.cs
- GridViewSelectEventArgs.cs
- BlurBitmapEffect.cs
- StyleHelper.cs
- SmtpReplyReaderFactory.cs
- XPathMultyIterator.cs
- XamlToRtfParser.cs
- Preprocessor.cs
- InputScopeConverter.cs
- IPEndPoint.cs
- DateTimeOffset.cs
- ModelPropertyImpl.cs
- OutputScope.cs
- WindowsGraphicsCacheManager.cs
- Composition.cs
- ValueUtilsSmi.cs
- ParamArrayAttribute.cs
- PlatformNotSupportedException.cs
- XmlParserContext.cs
- ProfilePropertyNameValidator.cs
- TypeResolver.cs
- EntityDataSourceContainerNameConverter.cs
- WebPartConnectionsCancelEventArgs.cs
- LayoutTable.cs
- WinCategoryAttribute.cs
- SafeTimerHandle.cs
- SrgsNameValueTag.cs
- SemaphoreSlim.cs
- XamlWriter.cs
- XmlILCommand.cs
- _AutoWebProxyScriptEngine.cs
- NamespaceEmitter.cs
- RecordBuilder.cs
- RegexRunnerFactory.cs
- StorageEndPropertyMapping.cs
- ContextMenuStrip.cs
- DataGridViewCellStyleConverter.cs
- BindingExpression.cs
- PlatformNotSupportedException.cs
- PropertyGeneratedEventArgs.cs
- X509ScopedServiceCertificateElement.cs
- InvalidBodyAccessException.cs
- Normalization.cs
- BufferedReceiveManager.cs
- SessionIDManager.cs
- MissingMethodException.cs
- _ListenerResponseStream.cs
- ImplicitInputBrush.cs
- ObjectMaterializedEventArgs.cs
- MethodAccessException.cs