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
- MouseActionConverter.cs
- XmlSerializer.cs
- PaintValueEventArgs.cs
- MappingItemCollection.cs
- TableLayoutStyleCollection.cs
- IssuedTokenClientBehaviorsElement.cs
- ConfigurationValue.cs
- Normalizer.cs
- SecurityContext.cs
- ExtendedPropertyCollection.cs
- ISessionStateStore.cs
- TypefaceMap.cs
- WindowsProgressbar.cs
- EventRouteFactory.cs
- SR.cs
- Membership.cs
- AuthenticationModuleElement.cs
- XmlSchemaFacet.cs
- ResourcePart.cs
- GenericRootAutomationPeer.cs
- ImageIndexConverter.cs
- ByteFacetDescriptionElement.cs
- WebBrowserUriTypeConverter.cs
- Condition.cs
- RoleBoolean.cs
- DecimalFormatter.cs
- FieldAccessException.cs
- WhitespaceRuleReader.cs
- MSG.cs
- SqlConnectionFactory.cs
- Margins.cs
- PropertyOverridesTypeEditor.cs
- CodePrimitiveExpression.cs
- PrivateFontCollection.cs
- ForeignConstraint.cs
- XmlEventCache.cs
- ComponentResourceKeyConverter.cs
- WindowsEditBoxRange.cs
- ReferencedAssembly.cs
- NativeMethods.cs
- TemplateBindingExpressionConverter.cs
- RSAPKCS1SignatureDeformatter.cs
- DocumentEventArgs.cs
- SequentialWorkflowRootDesigner.cs
- Enlistment.cs
- QueryStringConverter.cs
- HttpsHostedTransportConfiguration.cs
- OutputCacheProfile.cs
- EndpointIdentityConverter.cs
- ByeOperationCD1AsyncResult.cs
- ToolStripProfessionalLowResolutionRenderer.cs
- DependencyPropertyHelper.cs
- Control.cs
- Visual.cs
- ChtmlTextWriter.cs
- StrokeNodeData.cs
- DataTemplateSelector.cs
- AbstractSvcMapFileLoader.cs
- HttpStreamFormatter.cs
- CodeTypeReference.cs
- OrderPreservingMergeHelper.cs
- Soap.cs
- NamespaceMapping.cs
- Function.cs
- ListControlConvertEventArgs.cs
- UnsafeNativeMethods.cs
- SizeF.cs
- SmtpReplyReaderFactory.cs
- ExpressionConverter.cs
- ConvertTextFrag.cs
- SizeValueSerializer.cs
- WsdlBuildProvider.cs
- DuplicateWaitObjectException.cs
- OdbcParameter.cs
- IISMapPath.cs
- ImpersonateTokenRef.cs
- PageThemeBuildProvider.cs
- EventProvider.cs
- DataGridHeaderBorder.cs
- SchemaElementLookUpTableEnumerator.cs
- HtmlElementErrorEventArgs.cs
- XPathDocumentBuilder.cs
- HtmlControlAdapter.cs
- FreezableOperations.cs
- CodeTypeReferenceCollection.cs
- safemediahandle.cs
- TextEditorCopyPaste.cs
- SqlDataSourceEnumerator.cs
- XmlNavigatorStack.cs
- XmlCollation.cs
- DefaultAsyncDataDispatcher.cs
- Point4DConverter.cs
- TogglePattern.cs
- XmlQualifiedName.cs
- Decoder.cs
- IMembershipProvider.cs
- DrawingAttributesDefaultValueFactory.cs
- AnnotationComponentManager.cs
- TextTreeRootTextBlock.cs
- TryExpression.cs