Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / whidbey / netfxsp / 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
- ObjectDataSourceSelectingEventArgs.cs
- NetTcpSection.cs
- Binding.cs
- RectangleConverter.cs
- WebEventTraceProvider.cs
- TimelineCollection.cs
- Timer.cs
- WebPartTransformerAttribute.cs
- ToolStripRenderer.cs
- DesignerPerfEventProvider.cs
- WebBrowserDocumentCompletedEventHandler.cs
- IApplicationTrustManager.cs
- HandledMouseEvent.cs
- ToolboxItem.cs
- ScriptingRoleServiceSection.cs
- TypedTableBaseExtensions.cs
- TemplateControl.cs
- PageCodeDomTreeGenerator.cs
- ClipboardData.cs
- DesignSurfaceServiceContainer.cs
- ExpandableObjectConverter.cs
- FileIOPermission.cs
- DataControlImageButton.cs
- RegexTree.cs
- StagingAreaInputItem.cs
- NotifyParentPropertyAttribute.cs
- HtmlButton.cs
- WindowsTooltip.cs
- StringSource.cs
- TdsEnums.cs
- DataSourceDesigner.cs
- String.cs
- ContourSegment.cs
- Baml2006KnownTypes.cs
- Effect.cs
- ConsoleKeyInfo.cs
- SerializationHelper.cs
- ConfigurationConverterBase.cs
- TextWriter.cs
- AsyncPostBackErrorEventArgs.cs
- Transaction.cs
- ClientConfigPaths.cs
- BulletChrome.cs
- BinaryFormatterSinks.cs
- EditorZoneDesigner.cs
- WsatServiceCertificate.cs
- GridViewPageEventArgs.cs
- WindowsClientCredential.cs
- Knowncolors.cs
- ErrorHandler.cs
- PasswordRecovery.cs
- FactoryGenerator.cs
- SimpleLine.cs
- TextBreakpoint.cs
- SettingsBindableAttribute.cs
- DesignerGeometryHelper.cs
- WindowsHyperlink.cs
- CryptoHelper.cs
- CalloutQueueItem.cs
- SafeRegistryHandle.cs
- RawStylusInputCustomDataList.cs
- TypeConverterMarkupExtension.cs
- CompiledScopeCriteria.cs
- PeerPresenceInfo.cs
- QueryContinueDragEvent.cs
- TimeZone.cs
- BindingsCollection.cs
- SiteMapNodeItemEventArgs.cs
- ProgressPage.cs
- SubMenuStyle.cs
- FormsAuthenticationConfiguration.cs
- DependencyPropertyDescriptor.cs
- SpeechAudioFormatInfo.cs
- SequenceNumber.cs
- FragmentNavigationEventArgs.cs
- RtfControls.cs
- ScriptIgnoreAttribute.cs
- ScriptDescriptor.cs
- EntityDesignerDataSourceView.cs
- SystemIPInterfaceStatistics.cs
- OdbcPermission.cs
- MaskedTextBoxTextEditor.cs
- SelectionProcessor.cs
- ThreadStartException.cs
- XmlCollation.cs
- PropertyTabAttribute.cs
- SoapCommonClasses.cs
- DesignerExtenders.cs
- MaskInputRejectedEventArgs.cs
- ErrorRuntimeConfig.cs
- ProtocolsConfigurationHandler.cs
- DependsOnAttribute.cs
- DataRow.cs
- BamlLocalizerErrorNotifyEventArgs.cs
- DocumentViewerHelper.cs
- TableRow.cs
- TextFindEngine.cs
- DocumentGridContextMenu.cs
- ECDiffieHellmanPublicKey.cs
- ModelVisual3D.cs