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
- InternalControlCollection.cs
- DataTablePropertyDescriptor.cs
- _ReceiveMessageOverlappedAsyncResult.cs
- AssertSection.cs
- MappingSource.cs
- DesignBindingValueUIHandler.cs
- CallContext.cs
- HtmlAnchor.cs
- PeerNameResolver.cs
- AutomationProperty.cs
- Span.cs
- TypeConverterAttribute.cs
- DataBindEngine.cs
- SharedConnectionWorkflowTransactionService.cs
- TextRunProperties.cs
- CommentAction.cs
- Delay.cs
- DataGridHeaderBorder.cs
- ScriptingProfileServiceSection.cs
- TextHintingModeValidation.cs
- WsdlBuildProvider.cs
- ContextBase.cs
- PageCatalogPart.cs
- UnsafeNativeMethodsTablet.cs
- SrgsElementList.cs
- SurrogateChar.cs
- RTLAwareMessageBox.cs
- GridView.cs
- OrderPreservingSpoolingTask.cs
- DeflateEmulationStream.cs
- IndexedWhereQueryOperator.cs
- RouteValueExpressionBuilder.cs
- EnlistmentState.cs
- DiagnosticsConfigurationHandler.cs
- FunctionImportMapping.ReturnTypeRenameMapping.cs
- XmlSchemaGroupRef.cs
- Brush.cs
- DeploymentExceptionMapper.cs
- SetIndexBinder.cs
- XmlHierarchicalEnumerable.cs
- NoneExcludedImageIndexConverter.cs
- TextDecorationCollection.cs
- LocalizedNameDescriptionPair.cs
- DataTableMapping.cs
- XmlExtensionFunction.cs
- ServiceDurableInstanceContextProvider.cs
- DbConnectionInternal.cs
- BitmapEffectvisualstate.cs
- SafeIUnknown.cs
- ConfigurationLocation.cs
- HostingEnvironmentSection.cs
- PropertyPushdownHelper.cs
- PageThemeCodeDomTreeGenerator.cs
- LateBoundChannelParameterCollection.cs
- TextMarkerSource.cs
- GeneratedView.cs
- AccessDataSourceDesigner.cs
- SQLResource.cs
- MultiTrigger.cs
- RemotingConfiguration.cs
- MouseGesture.cs
- EmptyStringExpandableObjectConverter.cs
- DateTimeAutomationPeer.cs
- ToolStripTextBox.cs
- BitmapPalettes.cs
- XmlFormatMapping.cs
- StylusPointPropertyId.cs
- ServiceObjectContainer.cs
- DbConnectionPool.cs
- Literal.cs
- CompiledXpathExpr.cs
- XmlSchemaObjectCollection.cs
- ColumnWidthChangingEvent.cs
- BinaryFormatterSinks.cs
- BrowsableAttribute.cs
- ZipIOLocalFileDataDescriptor.cs
- Mapping.cs
- QuadTree.cs
- MulticastIPAddressInformationCollection.cs
- nulltextnavigator.cs
- SessionStateUtil.cs
- TimelineCollection.cs
- XmlQueryCardinality.cs
- DbModificationCommandTree.cs
- X509CertificateCollection.cs
- TileModeValidation.cs
- ExceptionUtil.cs
- StyleReferenceConverter.cs
- __ComObject.cs
- EventWaitHandle.cs
- CodeMemberField.cs
- SqlTypeSystemProvider.cs
- ServicePointManager.cs
- ClaimTypeElement.cs
- Highlights.cs
- DiscriminatorMap.cs
- ClientApiGenerator.cs
- FullTextLine.cs
- SafeSystemMetrics.cs
- StringAnimationBase.cs