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
- AuthorizationPolicyTypeElement.cs
- WindowsEditBox.cs
- SqlConnectionPoolProviderInfo.cs
- DataGrid.cs
- Helpers.cs
- AccessDataSource.cs
- LinqDataSourceView.cs
- WebBrowserPermission.cs
- WebPartConnectionsCancelEventArgs.cs
- NameTable.cs
- DataGridCommandEventArgs.cs
- ConnectionConsumerAttribute.cs
- TransactionInterop.cs
- rsa.cs
- BevelBitmapEffect.cs
- BaseTemplateBuildProvider.cs
- Pts.cs
- XmlBinaryWriter.cs
- IsolationInterop.cs
- BufferedStream.cs
- SqlPersonalizationProvider.cs
- FtpWebResponse.cs
- RemoteArgument.cs
- SplitterEvent.cs
- URLAttribute.cs
- WindowShowOrOpenTracker.cs
- StrongNameKeyPair.cs
- RuntimeHelpers.cs
- SqlGenerator.cs
- SafeLibraryHandle.cs
- BamlWriter.cs
- ConfigXmlWhitespace.cs
- SelectionHighlightInfo.cs
- StringUtil.cs
- MergeFilterQuery.cs
- EntityDesignPluralizationHandler.cs
- InputScope.cs
- TypeSystem.cs
- UnicodeEncoding.cs
- hresults.cs
- XamlFxTrace.cs
- Cursors.cs
- ZoneIdentityPermission.cs
- LinkArea.cs
- SolidColorBrush.cs
- AnnotationService.cs
- SrgsSubset.cs
- TreeViewItemAutomationPeer.cs
- ClientProtocol.cs
- StaticSiteMapProvider.cs
- CurrentChangedEventManager.cs
- VariableValue.cs
- CollectionDataContractAttribute.cs
- TransformerTypeCollection.cs
- ModelPropertyImpl.cs
- BrushConverter.cs
- BaseTemplateParser.cs
- BasePropertyDescriptor.cs
- PngBitmapEncoder.cs
- UserInitiatedNavigationPermission.cs
- LicenseContext.cs
- GrammarBuilderPhrase.cs
- AppDomainInfo.cs
- BrowserCapabilitiesCodeGenerator.cs
- DynamicVirtualDiscoSearcher.cs
- RSACryptoServiceProvider.cs
- CodeExpressionStatement.cs
- DataGridViewColumnConverter.cs
- SrgsGrammar.cs
- Transactions.cs
- oledbconnectionstring.cs
- UnsafeNativeMethods.cs
- ShutDownListener.cs
- SapiRecoInterop.cs
- StylusPointProperty.cs
- SoapSchemaImporter.cs
- ParsedAttributeCollection.cs
- DynamicPropertyHolder.cs
- BindableTemplateBuilder.cs
- CodeGenerator.cs
- RecognizerBase.cs
- BinaryOperationBinder.cs
- MyContact.cs
- StrongNameIdentityPermission.cs
- DataFormats.cs
- BooleanKeyFrameCollection.cs
- ProtectedConfigurationSection.cs
- BamlBinaryReader.cs
- ContextMenuAutomationPeer.cs
- BasicBrowserDialog.designer.cs
- Vector3DValueSerializer.cs
- WindowsListViewSubItem.cs
- DataErrorValidationRule.cs
- WebBrowserHelper.cs
- ObjectStateFormatter.cs
- ColorEditor.cs
- ConnectionPoint.cs
- FragmentQueryKB.cs
- Error.cs
- categoryentry.cs