Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / WinForms / Managed / System / WinForms / ToolStripArrowRenderEventArgs.cs / 1305376 / 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
- NamespaceMapping.cs
- ForeignKeyFactory.cs
- TaskFileService.cs
- TabControlEvent.cs
- HtmlInputPassword.cs
- ExpressionConverter.cs
- SmiMetaData.cs
- XmlConvert.cs
- EncodingNLS.cs
- DelegateHelpers.Generated.cs
- AsymmetricKeyExchangeFormatter.cs
- ProxyAttribute.cs
- DoubleKeyFrameCollection.cs
- Literal.cs
- BitSet.cs
- SystemNetworkInterface.cs
- Bezier.cs
- CellNormalizer.cs
- GridViewCancelEditEventArgs.cs
- VectorAnimationBase.cs
- LocatorPart.cs
- SQLUtility.cs
- PageParserFilter.cs
- XmlSchemaCompilationSettings.cs
- TableLayoutRowStyleCollection.cs
- CompilerErrorCollection.cs
- SettingsPropertyValue.cs
- DocumentPaginator.cs
- SourceLineInfo.cs
- SqlStream.cs
- PropertyNames.cs
- OutputCache.cs
- PreviewControlDesigner.cs
- TemplateBuilder.cs
- TextInfo.cs
- CursorConverter.cs
- ExtendedPropertyDescriptor.cs
- ToolStripComboBox.cs
- WebZone.cs
- UshortList2.cs
- While.cs
- DesignTimeParseData.cs
- MenuItemBinding.cs
- TranslateTransform3D.cs
- ResourceManager.cs
- SettingsProviderCollection.cs
- BitmapInitialize.cs
- DesignerVerbCollection.cs
- SpoolingTaskBase.cs
- GPStream.cs
- UidManager.cs
- Panel.cs
- ThousandthOfEmRealDoubles.cs
- EventLogPropertySelector.cs
- KeyboardDevice.cs
- QuaternionRotation3D.cs
- SqlBinder.cs
- PeerResolverSettings.cs
- ExpressionNode.cs
- AVElementHelper.cs
- CacheSection.cs
- HttpServerVarsCollection.cs
- CommandTreeTypeHelper.cs
- XmlNamedNodeMap.cs
- Constants.cs
- OutputScopeManager.cs
- WebPartDisplayModeEventArgs.cs
- KeyFrames.cs
- BufferBuilder.cs
- SplitContainer.cs
- ColorPalette.cs
- XmlSchema.cs
- QualifiedCellIdBoolean.cs
- Crc32.cs
- EventsTab.cs
- NullableBoolConverter.cs
- PrinterResolution.cs
- HttpHandlerAction.cs
- WeakReferenceEnumerator.cs
- StorageMappingItemLoader.cs
- WriteableBitmap.cs
- DataObjectMethodAttribute.cs
- SendActivityEventArgs.cs
- DesignerForm.cs
- TableLayoutRowStyleCollection.cs
- PenLineCapValidation.cs
- diagnosticsswitches.cs
- MenuItem.cs
- WindowsAuthenticationEventArgs.cs
- MasterPageBuildProvider.cs
- EncoderBestFitFallback.cs
- TextServicesProperty.cs
- DataContractSerializerElement.cs
- HttpCapabilitiesBase.cs
- SmiEventSink_Default.cs
- MonthCalendar.cs
- DummyDataSource.cs
- SizeConverter.cs
- WpfSharedBamlSchemaContext.cs
- WebServiceErrorEvent.cs