Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / whidbey / NetFxQFE / 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. // //----------------------------------------------------------------------------- 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.
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- ConfigurationLockCollection.cs
- SqlAggregateChecker.cs
- EditorPartCollection.cs
- baseshape.cs
- RIPEMD160Managed.cs
- BindingListCollectionView.cs
- CorrelationTokenTypeConvertor.cs
- VersionedStreamOwner.cs
- ElementFactory.cs
- iisPickupDirectory.cs
- CodeTypeDeclarationCollection.cs
- LineGeometry.cs
- EntityClientCacheEntry.cs
- CacheDependency.cs
- DataGridViewCellFormattingEventArgs.cs
- DiffuseMaterial.cs
- Application.cs
- StoreContentChangedEventArgs.cs
- EdmRelationshipNavigationPropertyAttribute.cs
- VisualBrush.cs
- FileVersion.cs
- _OSSOCK.cs
- ResourcePool.cs
- HtmlInputFile.cs
- InternalConfigHost.cs
- ProfilePropertyNameValidator.cs
- entityreference_tresulttype.cs
- lengthconverter.cs
- Walker.cs
- XmlNodeChangedEventArgs.cs
- AccessDataSourceView.cs
- XamlTreeBuilder.cs
- GroupBox.cs
- ContainerControl.cs
- CoTaskMemHandle.cs
- ErrorWrapper.cs
- SqlTypeConverter.cs
- StrokeNode.cs
- COM2Properties.cs
- precedingquery.cs
- XhtmlBasicPageAdapter.cs
- ImageBrush.cs
- Evidence.cs
- CrossSiteScriptingValidation.cs
- MeasurementDCInfo.cs
- ServerIdentity.cs
- BulletChrome.cs
- MailAddress.cs
- QuadraticBezierSegment.cs
- SpecialTypeDataContract.cs
- DrawingGroupDrawingContext.cs
- DataListItemEventArgs.cs
- TextUtf8RawTextWriter.cs
- MatrixAnimationBase.cs
- _OSSOCK.cs
- SessionPageStateSection.cs
- JavaScriptSerializer.cs
- ObsoleteAttribute.cs
- TreeSet.cs
- DataGridTextBoxColumn.cs
- InteropAutomationProvider.cs
- XPathScanner.cs
- _TransmitFileOverlappedAsyncResult.cs
- _HelperAsyncResults.cs
- ScrollContentPresenter.cs
- ImmutableObjectAttribute.cs
- IdleTimeoutMonitor.cs
- BindingNavigator.cs
- CodeMemberProperty.cs
- LineMetrics.cs
- TextSimpleMarkerProperties.cs
- SchemaMapping.cs
- GenericPrincipal.cs
- CodeTypeConstructor.cs
- StyleSelector.cs
- DataGridViewControlCollection.cs
- DockProviderWrapper.cs
- LazyTextWriterCreator.cs
- SecurityTimestamp.cs
- ScalarOps.cs
- FormCollection.cs
- _Win32.cs
- SqlDependency.cs
- LocatorBase.cs
- GraphicsContainer.cs
- FunctionImportElement.cs
- OperatingSystem.cs
- FieldAccessException.cs
- TemplateXamlParser.cs
- IList.cs
- RuleSetReference.cs
- CodeBinaryOperatorExpression.cs
- LocalizableAttribute.cs
- SerializationInfoEnumerator.cs
- ListViewCancelEventArgs.cs
- StaticExtensionConverter.cs
- _CacheStreams.cs
- Package.cs
- XmlTypeAttribute.cs
- FileStream.cs