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
- SchemaType.cs
- DESCryptoServiceProvider.cs
- ButtonField.cs
- EntityContainerRelationshipSetEnd.cs
- TypeSchema.cs
- SelectionGlyph.cs
- AssemblyBuilder.cs
- ReachBasicContext.cs
- ImmutableCommunicationTimeouts.cs
- Binding.cs
- UiaCoreApi.cs
- SpeechSeg.cs
- CodeTypeParameterCollection.cs
- SafeFileMappingHandle.cs
- LinearKeyFrames.cs
- OleDbParameterCollection.cs
- HttpModuleAction.cs
- CacheEntry.cs
- TablePattern.cs
- PermissionSetTriple.cs
- HeaderCollection.cs
- ResourceExpression.cs
- EntityViewContainer.cs
- PropertyDescriptorCollection.cs
- EpmContentDeSerializerBase.cs
- SecurityHelper.cs
- DataReaderContainer.cs
- SchemaImporter.cs
- PropertyTabAttribute.cs
- RtfFormatStack.cs
- SurrogateEncoder.cs
- PictureBox.cs
- TransformCollection.cs
- UrlAuthFailureHandler.cs
- ConfigXmlWhitespace.cs
- Size3DValueSerializer.cs
- ButtonField.cs
- EventEntry.cs
- AppDomain.cs
- SectionUpdates.cs
- SqlMetaData.cs
- TreeNodeCollection.cs
- ModifierKeysValueSerializer.cs
- MouseOverProperty.cs
- DelegateBodyWriter.cs
- HtmlPanelAdapter.cs
- DecoderReplacementFallback.cs
- CheckBoxFlatAdapter.cs
- SettingsProviderCollection.cs
- PropertyMetadata.cs
- EncryptedData.cs
- BatchWriter.cs
- IdentityHolder.cs
- PopOutPanel.cs
- IndexerNameAttribute.cs
- OrderedDictionaryStateHelper.cs
- filewebrequest.cs
- SmtpDigestAuthenticationModule.cs
- AnimationLayer.cs
- LazyTextWriterCreator.cs
- UndirectedGraph.cs
- XpsFixedDocumentReaderWriter.cs
- DataReceivedEventArgs.cs
- KeyTimeConverter.cs
- _ScatterGatherBuffers.cs
- IntSecurity.cs
- CalendarDay.cs
- Content.cs
- RuntimeIdentifierPropertyAttribute.cs
- CallTemplateAction.cs
- DesignTimeVisibleAttribute.cs
- Trigger.cs
- Cursor.cs
- dtdvalidator.cs
- Axis.cs
- TableLayoutSettingsTypeConverter.cs
- ServiceOperationListItemList.cs
- RegexTree.cs
- StringComparer.cs
- XhtmlConformanceSection.cs
- ExpressionBuilder.cs
- CultureData.cs
- TypeBuilder.cs
- RotateTransform.cs
- GridViewCellAutomationPeer.cs
- ConfigurationManagerInternalFactory.cs
- DataProtection.cs
- DataGridViewCell.cs
- OutOfMemoryException.cs
- MultiSelectRootGridEntry.cs
- GPRECTF.cs
- ReflectionTypeLoadException.cs
- ZipIOExtraFieldPaddingElement.cs
- InheritanceRules.cs
- HttpHandlerActionCollection.cs
- EndpointNameMessageFilter.cs
- SignatureConfirmationElement.cs
- ShellProvider.cs
- EventProviderClassic.cs
- CallContext.cs