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
- EntityTransaction.cs
- TargetPerspective.cs
- DrawToolTipEventArgs.cs
- TextCompositionManager.cs
- BitmapEffectInput.cs
- Size.cs
- CloseSequence.cs
- ResourceDescriptionAttribute.cs
- TempFiles.cs
- CodeGenerationManager.cs
- CompoundFileDeflateTransform.cs
- mansign.cs
- BitmapMetadataEnumerator.cs
- SystemWebSectionGroup.cs
- TreeViewEvent.cs
- ListView.cs
- FileStream.cs
- JoinCqlBlock.cs
- TrimSurroundingWhitespaceAttribute.cs
- DoubleAnimation.cs
- OwnerDrawPropertyBag.cs
- InternalBase.cs
- CheckPair.cs
- InvokeMethod.cs
- XPathDocumentIterator.cs
- HelpProvider.cs
- AsyncPostBackTrigger.cs
- BaseAsyncResult.cs
- JapaneseCalendar.cs
- SmiContextFactory.cs
- WebMessageBodyStyleHelper.cs
- DataControlPagerLinkButton.cs
- Stroke2.cs
- RegistryPermission.cs
- sortedlist.cs
- DesignerValidationSummaryAdapter.cs
- LabelAutomationPeer.cs
- AddDataControlFieldDialog.cs
- SelectionEditor.cs
- StringOutput.cs
- XmlSchemaObject.cs
- XmlDigitalSignatureProcessor.cs
- SignalGate.cs
- SeekStoryboard.cs
- TextElementEditingBehaviorAttribute.cs
- StorageRoot.cs
- CustomBindingCollectionElement.cs
- ProcessHostServerConfig.cs
- SafeArchiveContext.cs
- IntSumAggregationOperator.cs
- InfoCardX509Validator.cs
- SmiMetaDataProperty.cs
- EmbossBitmapEffect.cs
- RootProfilePropertySettingsCollection.cs
- StylusPointProperties.cs
- AuthenticatingEventArgs.cs
- Visual3DCollection.cs
- _ListenerRequestStream.cs
- SocketAddress.cs
- LogRecordSequence.cs
- RightsManagementEncryptedStream.cs
- RayHitTestParameters.cs
- TargetInvocationException.cs
- CompositeKey.cs
- CorrelationService.cs
- EmptyCollection.cs
- TextRange.cs
- metadatamappinghashervisitor.cs
- Setter.cs
- TransformerInfoCollection.cs
- HuffmanTree.cs
- XmlCharType.cs
- ActionFrame.cs
- WebServiceMethodData.cs
- ReaderContextStackData.cs
- SqlTrackingQuery.cs
- SqlReferenceCollection.cs
- NativeMethods.cs
- Subtree.cs
- ProjectionCamera.cs
- ExpressionsCollectionConverter.cs
- DesignerDataSourceView.cs
- SignatureToken.cs
- RtfToken.cs
- PositiveTimeSpanValidatorAttribute.cs
- ToolStripContainerActionList.cs
- SafeProcessHandle.cs
- ParseElement.cs
- Maps.cs
- InvalidFilterCriteriaException.cs
- XPathException.cs
- SafeHandles.cs
- Run.cs
- OperandQuery.cs
- PersistChildrenAttribute.cs
- TagNameToTypeMapper.cs
- TrustLevelCollection.cs
- cookiecollection.cs
- CircleHotSpot.cs
- TemplateBamlRecordReader.cs