Code:
/ FX-1434 / FX-1434 / 1.0 / untmp / whidbey / REDBITS / ndp / fx / src / WinForms / Managed / System / WinForms / ToolStripArrowRenderEventArgs.cs / 1 / ToolStripArrowRenderEventArgs.cs
//------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------------------- namespace System.Windows.Forms { using System.Drawing; ///public class ToolStripArrowRenderEventArgs : EventArgs { private Graphics graphics = null; private Rectangle arrowRect = Rectangle.Empty; private Color arrowColor = Color.Empty; private Color defaultArrowColor = Color.Empty; private ArrowDirection arrowDirection = ArrowDirection.Down; private ToolStripItem item = null; private bool arrowColorChanged = false; /// public ToolStripArrowRenderEventArgs(Graphics g, ToolStripItem toolStripItem, Rectangle arrowRectangle, Color arrowColor, ArrowDirection arrowDirection) { this.item = toolStripItem; this.graphics = g; this.arrowRect = arrowRectangle; this.defaultArrowColor = arrowColor; this.arrowDirection = arrowDirection; } /// public Rectangle ArrowRectangle { get { return arrowRect; } set { arrowRect = value; } } /// public Color ArrowColor { get { if (arrowColorChanged) { return arrowColor; } return DefaultArrowColor; } set { arrowColor = value; arrowColorChanged = true; } } internal Color DefaultArrowColor { get { return defaultArrowColor; } set { defaultArrowColor = value; } } /// public ArrowDirection Direction { get { return arrowDirection; } set { arrowDirection = value; } } /// public Graphics Graphics { get { return graphics; } } /// public ToolStripItem Item { get { return item; } } } } // 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
- cryptoapiTransform.cs
- ListControlConvertEventArgs.cs
- ArgumentDirectionHelper.cs
- XmlUtil.cs
- MediaContext.cs
- GenerateScriptTypeAttribute.cs
- HttpResponse.cs
- InputBinder.cs
- WindowsListViewScroll.cs
- StickyNote.cs
- ExpressionConverter.cs
- NamespaceMapping.cs
- NumericUpDownAcceleration.cs
- MarkedHighlightComponent.cs
- ExceptionValidationRule.cs
- SuppressMessageAttribute.cs
- HttpClientCertificate.cs
- UrlMappingsSection.cs
- DecoderExceptionFallback.cs
- BindableTemplateBuilder.cs
- RegexRunner.cs
- PowerEase.cs
- IriParsingElement.cs
- StylusShape.cs
- MessageQueuePermissionEntry.cs
- HttpsTransportBindingElement.cs
- WindowsUpDown.cs
- SystemIPInterfaceProperties.cs
- HtmlUtf8RawTextWriter.cs
- NamedPipeDuplicateContext.cs
- TaiwanCalendar.cs
- InkPresenter.cs
- FilteredAttributeCollection.cs
- SourceItem.cs
- TabRenderer.cs
- CompressionTransform.cs
- AuthenticationService.cs
- CodeObjectCreateExpression.cs
- ManagedFilter.cs
- NumericExpr.cs
- WebPartEditorApplyVerb.cs
- CompositeDataBoundControl.cs
- HashStream.cs
- Attributes.cs
- Classification.cs
- CompositionDesigner.cs
- MimeObjectFactory.cs
- objectquery_tresulttype.cs
- TextDecorationLocationValidation.cs
- TemplateParser.cs
- ObjectParameterCollection.cs
- CroppedBitmap.cs
- Crc32.cs
- GeometryConverter.cs
- WebBrowserEvent.cs
- DiscoveryEndpointElement.cs
- AnnotationHighlightLayer.cs
- SetterBaseCollection.cs
- OrderingExpression.cs
- CompilerWrapper.cs
- SafeUserTokenHandle.cs
- CodeGenerator.cs
- ProcessThread.cs
- BindingBase.cs
- MDIControlStrip.cs
- EntityWithChangeTrackerStrategy.cs
- HttpRuntime.cs
- SafeEventLogReadHandle.cs
- KeyFrames.cs
- Profiler.cs
- PresentationAppDomainManager.cs
- CollectionChangedEventManager.cs
- PageOrientation.cs
- SafeReadContext.cs
- SplineQuaternionKeyFrame.cs
- SQLBinary.cs
- SoapIgnoreAttribute.cs
- ArraySet.cs
- DataGridViewCheckBoxCell.cs
- ObjectResult.cs
- SelectionItemProviderWrapper.cs
- DataError.cs
- ADMembershipUser.cs
- Byte.cs
- ToolTip.cs
- SubclassTypeValidatorAttribute.cs
- LinearGradientBrush.cs
- DataGridViewCellStyle.cs
- WebPartDescription.cs
- XamlClipboardData.cs
- DispatcherHookEventArgs.cs
- OracleEncoding.cs
- ProtocolReflector.cs
- GridPattern.cs
- ProxyElement.cs
- QilPatternFactory.cs
- OleDbDataAdapter.cs
- CollectionViewGroupInternal.cs
- FactoryId.cs
- METAHEADER.cs