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
- DictionaryBase.cs
- FontDriver.cs
- TableLayoutRowStyleCollection.cs
- DataGridState.cs
- BindingsCollection.cs
- AsymmetricSignatureFormatter.cs
- CatalogZoneBase.cs
- VersionedStream.cs
- TextEditorCharacters.cs
- FormsAuthenticationConfiguration.cs
- XmlAnyElementAttribute.cs
- TableRowGroup.cs
- EmptyControlCollection.cs
- DataListItem.cs
- CodePrimitiveExpression.cs
- TreeWalker.cs
- EventProviderWriter.cs
- ComponentSerializationService.cs
- BlockUIContainer.cs
- SafeThreadHandle.cs
- KeyFrames.cs
- TextProperties.cs
- XPathPatternBuilder.cs
- IconBitmapDecoder.cs
- AutomationPatternInfo.cs
- ProgressPage.cs
- followingsibling.cs
- FontStyleConverter.cs
- WindowsToolbarItemAsMenuItem.cs
- WindowsFormsHostPropertyMap.cs
- ItemChangedEventArgs.cs
- Root.cs
- CompilationPass2TaskInternal.cs
- SchemaInfo.cs
- TextRunCache.cs
- SortedList.cs
- CompilerCollection.cs
- Matrix3DConverter.cs
- XmlDigitalSignatureProcessor.cs
- Activator.cs
- OletxDependentTransaction.cs
- DirectoryObjectSecurity.cs
- VisualTreeUtils.cs
- ApplicationCommands.cs
- PieceNameHelper.cs
- OdbcRowUpdatingEvent.cs
- UniqueIdentifierService.cs
- Number.cs
- StructuredProperty.cs
- FileUtil.cs
- BindableAttribute.cs
- DataFormats.cs
- TableLayout.cs
- KeyGesture.cs
- DependentList.cs
- ColorPalette.cs
- ProcessHostServerConfig.cs
- XmlChildEnumerator.cs
- ConsumerConnectionPoint.cs
- SqlMultiplexer.cs
- ProcessModuleCollection.cs
- ApplicationActivator.cs
- HtmlToClrEventProxy.cs
- LoginView.cs
- BeginStoryboard.cs
- SchemaTableColumn.cs
- NavigationPropertyEmitter.cs
- SchemaSetCompiler.cs
- ItemContainerGenerator.cs
- TextRangeProviderWrapper.cs
- LineInfo.cs
- DefaultTextStoreTextComposition.cs
- RewritingSimplifier.cs
- XmlSchemaType.cs
- ServiceReference.cs
- ClickablePoint.cs
- SqlDeflator.cs
- ISessionStateStore.cs
- OneOf.cs
- TemplateBindingExpression.cs
- TextServicesCompartmentContext.cs
- KeyFrames.cs
- BitStream.cs
- AutoGeneratedFieldProperties.cs
- AsnEncodedData.cs
- KeyGestureConverter.cs
- ObsoleteAttribute.cs
- XmlIterators.cs
- DesignTimeTemplateParser.cs
- CachedFontFace.cs
- DbDeleteCommandTree.cs
- SqlNode.cs
- Queue.cs
- BeginGetFileNameFromUserRequest.cs
- HttpGetServerProtocol.cs
- BaseParser.cs
- VariableQuery.cs
- AnimationStorage.cs
- UIElementCollection.cs
- ExeConfigurationFileMap.cs