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
- __Filters.cs
- PrintDialogException.cs
- DictionaryEntry.cs
- TailCallAnalyzer.cs
- CodeArrayCreateExpression.cs
- SqlMultiplexer.cs
- StyleTypedPropertyAttribute.cs
- XamlReader.cs
- BaseCollection.cs
- ListenerConnectionModeReader.cs
- SqlInternalConnectionSmi.cs
- _FixedSizeReader.cs
- DuplicateWaitObjectException.cs
- Logging.cs
- ProcessRequestArgs.cs
- IncrementalReadDecoders.cs
- EventProviderBase.cs
- TransactionInterop.cs
- HtmlContainerControl.cs
- DoubleAnimationUsingKeyFrames.cs
- AlignmentXValidation.cs
- AuthenticationModuleElementCollection.cs
- EpmContentDeSerializer.cs
- ObsoleteAttribute.cs
- TransformConverter.cs
- _HeaderInfo.cs
- WebPartDescription.cs
- ToolStripDropDownButton.cs
- EDesignUtil.cs
- ErasingStroke.cs
- ParserHooks.cs
- BufferedGraphics.cs
- ResourceManagerWrapper.cs
- TextBoxView.cs
- TrackBar.cs
- URLIdentityPermission.cs
- GenericWebPart.cs
- MimeMultiPart.cs
- QilScopedVisitor.cs
- DesignTimeParseData.cs
- DbExpressionRules.cs
- SplitterEvent.cs
- SerializationObjectManager.cs
- ThicknessAnimationUsingKeyFrames.cs
- ExecutionContext.cs
- SchemaCollectionPreprocessor.cs
- EventLogPropertySelector.cs
- SqlProviderManifest.cs
- HttpCachePolicyElement.cs
- SevenBitStream.cs
- SynchronousChannelMergeEnumerator.cs
- Subset.cs
- FileChangesMonitor.cs
- NameNode.cs
- RelationshipEndCollection.cs
- ScriptResourceAttribute.cs
- DataRecordInternal.cs
- TreeViewBindingsEditor.cs
- BaseTemplateBuildProvider.cs
- XmlILIndex.cs
- PreviewPageInfo.cs
- DependentList.cs
- LowerCaseStringConverter.cs
- TypeLoadException.cs
- UnsafeNativeMethodsMilCoreApi.cs
- MessageEncodingBindingElementImporter.cs
- DecoderNLS.cs
- Cloud.cs
- XmlNamespaceManager.cs
- ChangePassword.cs
- XmlSchemaSubstitutionGroup.cs
- ZipIOCentralDirectoryDigitalSignature.cs
- BuildResult.cs
- JsonQNameDataContract.cs
- InputReportEventArgs.cs
- NullableLongMinMaxAggregationOperator.cs
- SolidColorBrush.cs
- OleDbParameterCollection.cs
- ServiceOperationListItem.cs
- MemberAssignmentAnalysis.cs
- RefreshEventArgs.cs
- FormatterConverter.cs
- EntityDataSourceContextDisposingEventArgs.cs
- CatchDesigner.xaml.cs
- InvalidOperationException.cs
- DataGridViewRowHeaderCell.cs
- PassportIdentity.cs
- SizeF.cs
- RotateTransform3D.cs
- PixelFormat.cs
- COM2Properties.cs
- Endpoint.cs
- ApplicationServicesHostFactory.cs
- CustomValidator.cs
- WizardPanel.cs
- UIElementPropertyUndoUnit.cs
- HttpCapabilitiesBase.cs
- ObjectPersistData.cs
- ChannelBinding.cs
- ConsumerConnectionPoint.cs