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
- UIPropertyMetadata.cs
- StrongNameUtility.cs
- GroupDescription.cs
- GorillaCodec.cs
- DecoderExceptionFallback.cs
- SessionEndingEventArgs.cs
- HttpWriter.cs
- FixedHyperLink.cs
- DataChangedEventManager.cs
- SchemaSetCompiler.cs
- VirtualPathData.cs
- UrlMappingsSection.cs
- PrinterResolution.cs
- KeyGestureValueSerializer.cs
- Blend.cs
- ToolStrip.cs
- GraphicsPathIterator.cs
- SqlErrorCollection.cs
- OletxEnlistment.cs
- UpdateExpressionVisitor.cs
- GPStream.cs
- NetNamedPipeBindingElement.cs
- ObjectNotFoundException.cs
- Queue.cs
- ExtensionFile.cs
- ExtensionQuery.cs
- RegularExpressionValidator.cs
- PeerSecurityHelpers.cs
- InvalidPipelineStoreException.cs
- StrongTypingException.cs
- GridViewColumnCollection.cs
- Expression.cs
- XmlCodeExporter.cs
- Encoder.cs
- XmlAnyAttributeAttribute.cs
- ConnectionManagementElement.cs
- KeyTimeConverter.cs
- TreeViewItem.cs
- SignatureDescription.cs
- DbXmlEnabledProviderManifest.cs
- EventSinkActivity.cs
- ManagementObject.cs
- FileStream.cs
- ComponentResourceManager.cs
- Tuple.cs
- PartialCachingAttribute.cs
- ValueProviderWrapper.cs
- ReflectionHelper.cs
- SelectionPattern.cs
- Table.cs
- TextServicesPropertyRanges.cs
- GeneralTransform2DTo3D.cs
- Timeline.cs
- Assembly.cs
- KeyNotFoundException.cs
- IssuanceLicense.cs
- CustomAttributeBuilder.cs
- DataShape.cs
- SortKey.cs
- XmlSchemaSimpleTypeUnion.cs
- Authorization.cs
- ItemChangedEventArgs.cs
- NameTable.cs
- NumericUpDownAcceleration.cs
- AmbientLight.cs
- XmlIncludeAttribute.cs
- BaseTemplateParser.cs
- ToolboxCategory.cs
- ColorConvertedBitmapExtension.cs
- ConfigPathUtility.cs
- CommandID.cs
- NetStream.cs
- BinaryWriter.cs
- DataGridViewCellValidatingEventArgs.cs
- ImpersonationContext.cs
- UnknownWrapper.cs
- WebPartEditorCancelVerb.cs
- GacUtil.cs
- DockPattern.cs
- RecommendedAsConfigurableAttribute.cs
- DataGridViewColumnConverter.cs
- MappingException.cs
- PageRouteHandler.cs
- ObfuscateAssemblyAttribute.cs
- XmlAttributeHolder.cs
- XmlSerializableWriter.cs
- MouseActionConverter.cs
- PositiveTimeSpanValidator.cs
- NetDataContractSerializer.cs
- ValidationSettings.cs
- DoubleCollectionValueSerializer.cs
- sqlmetadatafactory.cs
- UrlMappingCollection.cs
- DeclaredTypeValidator.cs
- OracleParameter.cs
- AbandonedMutexException.cs
- StorageConditionPropertyMapping.cs
- NegotiateStream.cs
- SQLGuid.cs
- DataTableMapping.cs