Code:
/ 4.0 / 4.0 / untmp / 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.
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- WinEventHandler.cs
- WsdlExporter.cs
- WizardStepCollectionEditor.cs
- DataDocumentXPathNavigator.cs
- BindingExpression.cs
- ToolConsole.cs
- AuthenticatedStream.cs
- SettingsPropertyCollection.cs
- Win32NamedPipes.cs
- DefaultExpression.cs
- CardSpaceSelector.cs
- DictationGrammar.cs
- OutputCacheModule.cs
- CodeAssignStatement.cs
- Attributes.cs
- ObjRef.cs
- BindingExpressionUncommonField.cs
- GridSplitter.cs
- FormsAuthenticationUser.cs
- FilterEventArgs.cs
- webproxy.cs
- AnnotationObservableCollection.cs
- ServiceBuildProvider.cs
- PtsHelper.cs
- DataGridViewTopRowAccessibleObject.cs
- NativeMethods.cs
- ConfigurationLocationCollection.cs
- ListSourceHelper.cs
- ReferenceAssemblyAttribute.cs
- DPAPIProtectedConfigurationProvider.cs
- ProjectionCamera.cs
- ProfileElement.cs
- MergablePropertyAttribute.cs
- TemplateColumn.cs
- DirectoryRedirect.cs
- EmptyEnumerator.cs
- InputBuffer.cs
- PublisherIdentityPermission.cs
- UriExt.cs
- SharedPersonalizationStateInfo.cs
- MSHTMLHost.cs
- SecurityChannelListener.cs
- MemberHolder.cs
- Binding.cs
- Token.cs
- XPathAncestorQuery.cs
- _FixedSizeReader.cs
- ClientBuildManagerCallback.cs
- ConsumerConnectionPoint.cs
- ThreadPool.cs
- PropertyGridDesigner.cs
- TreeViewEvent.cs
- DeferrableContent.cs
- EventDescriptor.cs
- WebZone.cs
- EventSource.cs
- ManagementExtension.cs
- SerializableTypeCodeDomSerializer.cs
- _ConnectStream.cs
- COM2Enum.cs
- VisualTreeUtils.cs
- PreservationFileReader.cs
- ComboBoxItem.cs
- LocalizationComments.cs
- OpenTypeLayout.cs
- HttpModule.cs
- XmlSchemaChoice.cs
- FrameworkElement.cs
- HeaderFilter.cs
- PackageStore.cs
- ThousandthOfEmRealDoubles.cs
- invalidudtexception.cs
- NamedElement.cs
- SchemeSettingElement.cs
- SoapAttributeAttribute.cs
- OptionalColumn.cs
- SurrogateSelector.cs
- JsonGlobals.cs
- ManagementClass.cs
- Converter.cs
- TraceLevelStore.cs
- NameObjectCollectionBase.cs
- OutputCacheProfileCollection.cs
- Message.cs
- EntityDataSourceStatementEditor.cs
- ControlHelper.cs
- XmlDataSource.cs
- HttpStreamXmlDictionaryWriter.cs
- ReachDocumentReferenceSerializer.cs
- DocumentAutomationPeer.cs
- TextServicesCompartmentEventSink.cs
- ContainerActivationHelper.cs
- DataGridViewLinkColumn.cs
- CodeIterationStatement.cs
- ServiceOperationWrapper.cs
- Parser.cs
- UserControlBuildProvider.cs
- UserPreferenceChangedEventArgs.cs
- LayoutEngine.cs
- PiiTraceSource.cs