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
- EntitySqlQueryState.cs
- DBAsyncResult.cs
- DataGridView.cs
- coordinator.cs
- PolygonHotSpot.cs
- PriorityRange.cs
- XPathSelectionIterator.cs
- XmlValueConverter.cs
- ProviderConnectionPoint.cs
- Package.cs
- AnnouncementSendsAsyncResult.cs
- DesignerToolStripControlHost.cs
- Object.cs
- SplitterCancelEvent.cs
- TransactedReceiveScope.cs
- ElementHostPropertyMap.cs
- InstancePersistenceCommandException.cs
- HandlerMappingMemo.cs
- ReliableInputConnection.cs
- NavigationExpr.cs
- WebCategoryAttribute.cs
- Control.cs
- EditorBrowsableAttribute.cs
- ParameterReplacerVisitor.cs
- coordinatorscratchpad.cs
- RepeatInfo.cs
- SchemaTypeEmitter.cs
- TypedTableBaseExtensions.cs
- TextBox.cs
- FileInfo.cs
- PropertyGridView.cs
- XmlHierarchyData.cs
- GeometryGroup.cs
- CodeTypeDeclaration.cs
- PointIndependentAnimationStorage.cs
- ConfigsHelper.cs
- MatrixValueSerializer.cs
- CodePageUtils.cs
- Pair.cs
- AspNetHostingPermission.cs
- Sequence.cs
- OleDbDataAdapter.cs
- ResourceContainer.cs
- exports.cs
- COM2Enum.cs
- DeflateEmulationStream.cs
- XmlSchemaAppInfo.cs
- UserControlBuildProvider.cs
- BrowsableAttribute.cs
- SecurityRuntime.cs
- OleDbTransaction.cs
- EpmCustomContentDeSerializer.cs
- MethodCallExpression.cs
- DataStreams.cs
- smtppermission.cs
- DataKey.cs
- DigestTraceRecordHelper.cs
- ConvertersCollection.cs
- IsolationInterop.cs
- Transactions.cs
- Normalizer.cs
- TreeViewTemplateSelector.cs
- CompilationLock.cs
- ExtendedProtectionPolicyElement.cs
- HttpHeaderCollection.cs
- DoubleLinkListEnumerator.cs
- ComponentConverter.cs
- Vector3DValueSerializer.cs
- ThreadStartException.cs
- PowerModeChangedEventArgs.cs
- MouseEvent.cs
- DiscoveryClientRequestChannel.cs
- DefaultSettingsSection.cs
- TreeViewImageIndexConverter.cs
- SafeProcessHandle.cs
- LogFlushAsyncResult.cs
- Utils.cs
- ObjRef.cs
- ClipboardData.cs
- XPathScanner.cs
- WebEventTraceProvider.cs
- MsmqSecureHashAlgorithm.cs
- BindableTemplateBuilder.cs
- ToolStripDropDownItem.cs
- CompositionAdorner.cs
- Operand.cs
- EventProvider.cs
- PropertyConverter.cs
- BuildManagerHost.cs
- DataControlLinkButton.cs
- NumericExpr.cs
- InfoCardBinaryReader.cs
- Debug.cs
- HtmlSelect.cs
- CallId.cs
- Speller.cs
- TraceFilter.cs
- EventTrigger.cs
- ServerIdentity.cs
- TextSegment.cs