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
- ArraySubsetEnumerator.cs
- PartitionedStreamMerger.cs
- DataGridViewSelectedCellCollection.cs
- ImageAutomationPeer.cs
- PowerModeChangedEventArgs.cs
- PrimitiveXmlSerializers.cs
- PropertyCollection.cs
- _DomainName.cs
- SmiMetaData.cs
- FillRuleValidation.cs
- NumericExpr.cs
- Int64AnimationUsingKeyFrames.cs
- EventLogPermission.cs
- Rule.cs
- TextRangeProviderWrapper.cs
- CodeSnippetExpression.cs
- CacheEntry.cs
- TypeBuilder.cs
- MultiSelector.cs
- CrossContextChannel.cs
- NotFiniteNumberException.cs
- AutomationIdentifier.cs
- Int64Converter.cs
- SchemaElementLookUpTable.cs
- BitmapEffectInputConnector.cs
- thaishape.cs
- MeshGeometry3D.cs
- OrderedDictionary.cs
- MessageQueueCriteria.cs
- SignHashRequest.cs
- XmlSchemaComplexType.cs
- Regex.cs
- WebPartZoneBase.cs
- XmlWhitespace.cs
- TextEditorCopyPaste.cs
- HtmlElementEventArgs.cs
- WeakRefEnumerator.cs
- TableRowGroup.cs
- DBConnection.cs
- ViewCellSlot.cs
- SingleSelectRootGridEntry.cs
- DataConnectionHelper.cs
- Mappings.cs
- Rect3D.cs
- ListViewGroup.cs
- DBSqlParserColumnCollection.cs
- HeaderedItemsControl.cs
- DataGridViewCellCancelEventArgs.cs
- XamlPathDataSerializer.cs
- EntityDataSourceChangingEventArgs.cs
- Stack.cs
- PathFigureCollection.cs
- DependencyPropertyHelper.cs
- RegexRunnerFactory.cs
- TranslateTransform3D.cs
- GB18030Encoding.cs
- XmlWriter.cs
- ConfigXmlCDataSection.cs
- CustomError.cs
- Executor.cs
- HMAC.cs
- ConfigurationPermission.cs
- WebPartEventArgs.cs
- SafeLibraryHandle.cs
- Asn1IntegerConverter.cs
- TextTreeFixupNode.cs
- ListControl.cs
- SHA256.cs
- SizeKeyFrameCollection.cs
- WebPartChrome.cs
- QueryHandler.cs
- FormattedTextSymbols.cs
- LoginUtil.cs
- EntityDataReader.cs
- _Semaphore.cs
- DoWorkEventArgs.cs
- BuildProvider.cs
- TextServicesManager.cs
- CharacterMetrics.cs
- AttributedMetaModel.cs
- ServiceParser.cs
- XDeferredAxisSource.cs
- KeyProperty.cs
- HttpChannelFactory.cs
- ValidateNames.cs
- XmlAggregates.cs
- nulltextnavigator.cs
- GridViewPageEventArgs.cs
- GridViewAutomationPeer.cs
- PaperSize.cs
- DayRenderEvent.cs
- ChannelServices.cs
- WorkflowMarkupSerializationProvider.cs
- WeakKeyDictionary.cs
- BaseDataList.cs
- ContextActivityUtils.cs
- OutputCacheModule.cs
- SelectorItemAutomationPeer.cs
- BinaryExpression.cs
- OrthographicCamera.cs