Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / whidbey / NetFxQFE / 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. // //----------------------------------------------------------------------------- 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
- Win32SafeHandles.cs
- AccessDataSource.cs
- TextBlockAutomationPeer.cs
- CodeDomSerializationProvider.cs
- XmlComment.cs
- DragEventArgs.cs
- ChangesetResponse.cs
- Package.cs
- ManipulationDevice.cs
- UnsafeNativeMethods.cs
- FormConverter.cs
- RequestContext.cs
- CacheVirtualItemsEvent.cs
- DragCompletedEventArgs.cs
- ReadOnlyDataSourceView.cs
- ZipIOEndOfCentralDirectoryBlock.cs
- ColorContextHelper.cs
- WebPartConnectionsConnectVerb.cs
- ping.cs
- TemplateBindingExpressionConverter.cs
- DesignTimeType.cs
- EmbeddedMailObject.cs
- MaskedTextBox.cs
- MemberInfoSerializationHolder.cs
- SequenceDesigner.cs
- CapabilitiesAssignment.cs
- XslCompiledTransform.cs
- ContentDisposition.cs
- OleStrCAMarshaler.cs
- ToRequest.cs
- XmlUnspecifiedAttribute.cs
- TableItemPattern.cs
- MdiWindowListItemConverter.cs
- OutOfProcStateClientManager.cs
- DesignTimeTemplateParser.cs
- HitTestFilterBehavior.cs
- InputReferenceExpression.cs
- AdornerLayer.cs
- OperatorExpressions.cs
- RowCache.cs
- WebPartAddingEventArgs.cs
- DataGridViewCellPaintingEventArgs.cs
- PatternMatcher.cs
- _ChunkParse.cs
- CharEnumerator.cs
- DefaultTextStoreTextComposition.cs
- Expressions.cs
- WsatConfiguration.cs
- CodeTypeOfExpression.cs
- EntityClientCacheEntry.cs
- XmlSchemaInfo.cs
- TopClause.cs
- ContainerAction.cs
- ToolZone.cs
- BufferModeSettings.cs
- SEHException.cs
- ArithmeticException.cs
- MetadataAssemblyHelper.cs
- Root.cs
- SessionStateUtil.cs
- InfoCardRSAPKCS1KeyExchangeDeformatter.cs
- DocumentReferenceCollection.cs
- HelpEvent.cs
- DbParameterCollectionHelper.cs
- DesignSurface.cs
- XmlMembersMapping.cs
- PeerValidationBehavior.cs
- XmlNamedNodeMap.cs
- SystemDropShadowChrome.cs
- WebPartPersonalization.cs
- ConfigXmlWhitespace.cs
- ArcSegment.cs
- ellipse.cs
- Drawing.cs
- CommandTreeTypeHelper.cs
- ParserHooks.cs
- MetafileHeaderWmf.cs
- TextStore.cs
- IsolationInterop.cs
- SourceInterpreter.cs
- ExtractedStateEntry.cs
- MachineKeyConverter.cs
- MessageTraceRecord.cs
- MasterPageParser.cs
- ExtendedPropertyCollection.cs
- CompositeKey.cs
- MultilineStringConverter.cs
- TokenBasedSetEnumerator.cs
- ListBox.cs
- IncrementalReadDecoders.cs
- GlyphInfoList.cs
- TextDocumentView.cs
- ProcessModelInfo.cs
- EventItfInfo.cs
- ServiceReference.cs
- EventDescriptor.cs
- PostBackTrigger.cs
- WebControl.cs
- HtmlSelect.cs
- HttpCapabilitiesSectionHandler.cs