Code:
/ DotNET / DotNET / 8.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
- ArgIterator.cs
- HttpApplicationStateWrapper.cs
- ProcessModelInfo.cs
- CodeGenHelper.cs
- XmlSubtreeReader.cs
- FamilyMapCollection.cs
- EntityViewGenerator.cs
- CompositeControl.cs
- CodeIterationStatement.cs
- RemotingConfigParser.cs
- DescendantQuery.cs
- TableAutomationPeer.cs
- XmlSerializerFactory.cs
- BuiltInExpr.cs
- DataServicePagingProviderWrapper.cs
- ObjectViewEntityCollectionData.cs
- JsonServiceDocumentSerializer.cs
- TogglePattern.cs
- TempFiles.cs
- AnnouncementSendsAsyncResult.cs
- ObjectDataSourceMethodEventArgs.cs
- CultureInfoConverter.cs
- DataGridViewColumnConverter.cs
- AppSecurityManager.cs
- ProfessionalColorTable.cs
- TrackingServices.cs
- FactoryRecord.cs
- LogConverter.cs
- RC2CryptoServiceProvider.cs
- _HelperAsyncResults.cs
- Array.cs
- _NTAuthentication.cs
- ElementHost.cs
- LocalizationComments.cs
- ConfigurationSettings.cs
- GlyphElement.cs
- ViewBase.cs
- FileDialogCustomPlacesCollection.cs
- LookupBindingPropertiesAttribute.cs
- FilterableAttribute.cs
- ColorConvertedBitmapExtension.cs
- DecoderReplacementFallback.cs
- _ListenerResponseStream.cs
- BuilderInfo.cs
- PropertyAccessVisitor.cs
- LeafCellTreeNode.cs
- ProtocolsConfigurationHandler.cs
- UiaCoreApi.cs
- DuplicateDetector.cs
- UserNameServiceElement.cs
- MultiTargetingUtil.cs
- MessageQueue.cs
- MeshGeometry3D.cs
- StringResourceManager.cs
- PersonalizationProviderCollection.cs
- SqlCacheDependency.cs
- PresentationTraceSources.cs
- FontStretchConverter.cs
- CommandManager.cs
- TargetInvocationException.cs
- GraphicsPath.cs
- AssemblyHash.cs
- TextElement.cs
- TransformGroup.cs
- SerializerDescriptor.cs
- WinEventHandler.cs
- CustomWebEventKey.cs
- ConfigXmlElement.cs
- RenderingEventArgs.cs
- SendActivityEventArgs.cs
- MessageBodyDescription.cs
- Win32PrintDialog.cs
- DescendantBaseQuery.cs
- PartialTrustVisibleAssembly.cs
- EmptyEnumerator.cs
- XAMLParseException.cs
- GridViewSortEventArgs.cs
- HyperLinkStyle.cs
- EventOpcode.cs
- LookupTables.cs
- ConfigurationManagerHelperFactory.cs
- QueryCacheManager.cs
- RangeContentEnumerator.cs
- LogExtent.cs
- DigitShape.cs
- TaiwanLunisolarCalendar.cs
- ArraySubsetEnumerator.cs
- TableLayoutStyle.cs
- IndexerReference.cs
- ActivityStatusChangeEventArgs.cs
- SspiSafeHandles.cs
- DataContractFormatAttribute.cs
- HttpConfigurationSystem.cs
- ReadOnlyDataSource.cs
- DispatcherExceptionEventArgs.cs
- ForceCopyBuildProvider.cs
- SchemaAttDef.cs
- TextSerializer.cs
- Buffer.cs
- SmtpSpecifiedPickupDirectoryElement.cs