Code:
/ DotNET / DotNET / 8.0 / untmp / whidbey / REDBITS / ndp / fx / src / Designer / WinForms / System / WinForms / Design / Behavior / ComponentGlyph.cs / 1 / ComponentGlyph.cs
namespace System.Windows.Forms.Design.Behavior { using System; using System.Collections; using System.ComponentModel; using System.ComponentModel.Design; using System.Design; using System.Diagnostics; using System.Drawing; using System.Drawing.Drawing2D; using System.Windows.Forms.Design; ////// /// The ComponentGlyph class simply contains a pointer back /// to it's related Component. This can be used to trace /// Glyphs (during drag operations or otherwise) back to /// their component. /// public class ComponentGlyph : Glyph { private IComponent relatedComponent;//ptr back to the component ////// /// Standard constructor. /// public ComponentGlyph(IComponent relatedComponent, Behavior behavior) : base(behavior) { this.relatedComponent = relatedComponent; } public ComponentGlyph(IComponent relatedComponent) : base(null) { this.relatedComponent = relatedComponent; } ////// /// Returns the Component this Glyph is related to. /// public IComponent RelatedComponent { get { return relatedComponent; } } ////// /// Overrides GetHitTest - this implementation does nothing. /// public override Cursor GetHitTest(Point p) { return null; } ////// /// Overrides Glyph::Paint - this implementation does nothing. /// public override void Paint(PaintEventArgs pe) { } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. // Copyright (c) Microsoft Corporation. All rights reserved.
Link Menu
![Network programming in C#, Network Programming in VB.NET, Network Programming in .NET](/images/book.jpg)
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- SqlConnectionManager.cs
- InvalidFilterCriteriaException.cs
- ColorContext.cs
- GroupBoxRenderer.cs
- SessionEndingEventArgs.cs
- QilXmlWriter.cs
- OlePropertyStructs.cs
- XmlReader.cs
- BitmapEffectState.cs
- UpDownBaseDesigner.cs
- BeginEvent.cs
- XmlSchemaException.cs
- AnnotationStore.cs
- EventMappingSettings.cs
- WebPartDisplayModeEventArgs.cs
- SHA384Cng.cs
- ReadWriteSpinLock.cs
- IgnoreFlushAndCloseStream.cs
- XmlNodeComparer.cs
- TreeViewImageIndexConverter.cs
- XmlSecureResolver.cs
- LayoutTable.cs
- EmbeddedMailObjectCollectionEditor.cs
- ConfigurationManagerInternalFactory.cs
- FontFamilyValueSerializer.cs
- ContainerParagraph.cs
- TextServicesLoader.cs
- DateTimeStorage.cs
- AsyncStreamReader.cs
- MenuItemBindingCollection.cs
- ECDsaCng.cs
- MatcherBuilder.cs
- DataGridRelationshipRow.cs
- DesignerVerbCollection.cs
- ControlBuilderAttribute.cs
- WindowsRichEditRange.cs
- DBConcurrencyException.cs
- httpserverutility.cs
- DelayedRegex.cs
- ObjectStateManager.cs
- Ray3DHitTestResult.cs
- OdbcRowUpdatingEvent.cs
- RelatedPropertyManager.cs
- DetailsViewCommandEventArgs.cs
- Knowncolors.cs
- TransformCollection.cs
- Calendar.cs
- PolicyManager.cs
- ExpressionEditorSheet.cs
- ContextInformation.cs
- StructuredTypeEmitter.cs
- FileDialog_Vista_Interop.cs
- DataServiceRequestArgs.cs
- ElementAtQueryOperator.cs
- CallContext.cs
- ToolBarButton.cs
- ToolStripRenderEventArgs.cs
- Identity.cs
- PageOutputColor.cs
- BookmarkWorkItem.cs
- TreeNodeBindingCollection.cs
- URLAttribute.cs
- ListenerChannelContext.cs
- LocalClientSecuritySettingsElement.cs
- VisualTreeUtils.cs
- KeyboardEventArgs.cs
- ExpressionNormalizer.cs
- CannotUnloadAppDomainException.cs
- BlurBitmapEffect.cs
- XmlSignatureManifest.cs
- VoiceObjectToken.cs
- LabelAutomationPeer.cs
- MinimizableAttributeTypeConverter.cs
- NativeCppClassAttribute.cs
- UrlMapping.cs
- RenderCapability.cs
- NetMsmqSecurityElement.cs
- Stopwatch.cs
- QilXmlReader.cs
- ServiceDescriptions.cs
- TreeNodeEventArgs.cs
- HttpCookieCollection.cs
- LineServices.cs
- SafeWaitHandle.cs
- RegisteredExpandoAttribute.cs
- DbMetaDataCollectionNames.cs
- safelink.cs
- AutomationProperties.cs
- WhitespaceRuleLookup.cs
- ThrowHelper.cs
- OdbcParameterCollection.cs
- LinqDataSource.cs
- ClientProtocol.cs
- DetailsViewCommandEventArgs.cs
- QueryContinueDragEventArgs.cs
- ToolBar.cs
- TriState.cs
- BaseDataListPage.cs
- ClrPerspective.cs
- UrlAuthFailedErrorFormatter.cs