Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / whidbey / NetFXspW7 / 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
- KoreanLunisolarCalendar.cs
- SafeCloseHandleCritical.cs
- ContactManager.cs
- StorageSetMapping.cs
- SqlNodeTypeOperators.cs
- Subtree.cs
- BuildDependencySet.cs
- WebPartManagerInternals.cs
- HMACMD5.cs
- CodeTypeReferenceCollection.cs
- SemaphoreFullException.cs
- AnimationTimeline.cs
- DateTimeConstantAttribute.cs
- ThreadInterruptedException.cs
- AuthenticateEventArgs.cs
- AnyReturnReader.cs
- WSIdentityFaultException.cs
- SQLDouble.cs
- ReliabilityContractAttribute.cs
- EntityCommandExecutionException.cs
- Normalization.cs
- TimelineGroup.cs
- Matrix.cs
- SiteMap.cs
- XmlnsCache.cs
- SqlGenericUtil.cs
- ConsoleCancelEventArgs.cs
- CodeCommentStatementCollection.cs
- MemberAccessException.cs
- ContextMenu.cs
- TextDocumentView.cs
- DbParameterCollectionHelper.cs
- MailBnfHelper.cs
- basemetadatamappingvisitor.cs
- TextBoxAutomationPeer.cs
- Base64Encoder.cs
- SliderAutomationPeer.cs
- IApplicationTrustManager.cs
- COM2IDispatchConverter.cs
- TypeEnumerableViewSchema.cs
- PartialCachingControl.cs
- ThicknessAnimation.cs
- ModuleBuilder.cs
- NominalTypeEliminator.cs
- PointHitTestParameters.cs
- RepeaterItemCollection.cs
- RegexParser.cs
- GenericRootAutomationPeer.cs
- WeakHashtable.cs
- Transactions.cs
- EncoderReplacementFallback.cs
- ResponseStream.cs
- CacheChildrenQuery.cs
- ScaleTransform3D.cs
- AttributeProviderAttribute.cs
- FlowchartDesignerCommands.cs
- UnsafeNativeMethods.cs
- ManagementEventWatcher.cs
- MultiByteCodec.cs
- SynchronizationFilter.cs
- SqlHelper.cs
- TraceHwndHost.cs
- ToolTip.cs
- LinqToSqlWrapper.cs
- OutArgumentConverter.cs
- TabControlCancelEvent.cs
- EnvelopedPkcs7.cs
- ProcessThread.cs
- TypeSemantics.cs
- MetaColumn.cs
- TableItemPatternIdentifiers.cs
- Substitution.cs
- RuntimeConfigLKG.cs
- ListViewDataItem.cs
- ReadOnlyDataSourceView.cs
- CmsUtils.cs
- Pair.cs
- StreamHelper.cs
- MTConfigUtil.cs
- ViewGenerator.cs
- XPathQilFactory.cs
- TypedAsyncResult.cs
- Light.cs
- OleAutBinder.cs
- XmlText.cs
- GeneralTransform2DTo3DTo2D.cs
- InvokeGenerator.cs
- SelectionGlyph.cs
- ServiceCredentials.cs
- LinkClickEvent.cs
- ServiceModelSecurityTokenTypes.cs
- NullReferenceException.cs
- ProviderException.cs
- AuthenticationServiceManager.cs
- MetricEntry.cs
- HtmlTextArea.cs
- DiscoveryDocumentSearchPattern.cs
- SudsWriter.cs
- ToolboxItem.cs
- FileStream.cs