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
- DataServiceHost.cs
- BinaryCommonClasses.cs
- TemplateApplicationHelper.cs
- WsatServiceAddress.cs
- Update.cs
- ApplicationDirectory.cs
- DataReceivedEventArgs.cs
- ConsoleCancelEventArgs.cs
- PackagePart.cs
- Inline.cs
- LicenseProviderAttribute.cs
- AttributeProviderAttribute.cs
- RelationshipDetailsRow.cs
- HtmlImage.cs
- Literal.cs
- DesignRelationCollection.cs
- DataSourceListEditor.cs
- CompilerCollection.cs
- EntityDataSourceState.cs
- MatrixKeyFrameCollection.cs
- RequestDescription.cs
- SynchronizedDispatch.cs
- UserControlAutomationPeer.cs
- ipaddressinformationcollection.cs
- TaskFormBase.cs
- CookielessHelper.cs
- EdmScalarPropertyAttribute.cs
- SettingsPropertyValue.cs
- ExpressionBuilderContext.cs
- ComEventsHelper.cs
- ReadOnlyHierarchicalDataSourceView.cs
- WindowsIdentity.cs
- SrgsElement.cs
- DelegatedStream.cs
- FlowDocumentPage.cs
- DynamicDataExtensions.cs
- PopupEventArgs.cs
- HttpRuntimeSection.cs
- Metadata.cs
- PersonalizationAdministration.cs
- PackageProperties.cs
- WindowsListViewGroupSubsetLink.cs
- ClassValidator.cs
- ConfigurationProperty.cs
- LayoutUtils.cs
- Config.cs
- GeneralTransform2DTo3D.cs
- ForeignKeyConstraint.cs
- EntityTypeBase.cs
- DataServiceKeyAttribute.cs
- PageStatePersister.cs
- DataRelationPropertyDescriptor.cs
- AutomationIdentifier.cs
- DesignerCapabilities.cs
- EDesignUtil.cs
- WebPartTransformer.cs
- ProxyAttribute.cs
- SmtpNtlmAuthenticationModule.cs
- SafeSecurityHandles.cs
- CompilationLock.cs
- OAVariantLib.cs
- ValueUtilsSmi.cs
- StringCollection.cs
- ChangesetResponse.cs
- PassportAuthenticationModule.cs
- ExpressionEvaluator.cs
- SqlInternalConnection.cs
- SchemaLookupTable.cs
- ArrangedElementCollection.cs
- MonikerProxyAttribute.cs
- StrokeRenderer.cs
- KeysConverter.cs
- XmlSchemaAnnotation.cs
- ZoomingMessageFilter.cs
- MethodCallTranslator.cs
- PersonalizationProvider.cs
- EndpointDispatcherTable.cs
- GeneralTransform3DGroup.cs
- AncestorChangedEventArgs.cs
- MouseEvent.cs
- ConvertEvent.cs
- MsmqHostedTransportConfiguration.cs
- TitleStyle.cs
- TypeDescriptionProviderAttribute.cs
- DataObject.cs
- PropertyManager.cs
- StringUtil.cs
- ServiceXNameTypeConverter.cs
- AssociationTypeEmitter.cs
- TextEndOfSegment.cs
- DataControlFieldCell.cs
- XmlLanguageConverter.cs
- HostedHttpContext.cs
- CoreSwitches.cs
- SoapProtocolImporter.cs
- TreeViewItemAutomationPeer.cs
- ConstructorBuilder.cs
- DBNull.cs
- MailAddressCollection.cs
- ContextMenuService.cs