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
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- TypeTypeConverter.cs
- SmtpCommands.cs
- xamlnodes.cs
- NamespaceList.cs
- SymmetricAlgorithm.cs
- XhtmlCssHandler.cs
- ServiceManager.cs
- HttpMethodAttribute.cs
- X509WindowsSecurityToken.cs
- ListenDesigner.cs
- ResourceReferenceKeyNotFoundException.cs
- WmlValidatorAdapter.cs
- JsonWriterDelegator.cs
- SiteMapNodeItem.cs
- ErrorTableItemStyle.cs
- ProcessRequestArgs.cs
- GridViewCellAutomationPeer.cs
- ImageSourceValueSerializer.cs
- ModuleElement.cs
- ViewValidator.cs
- ObjectQueryProvider.cs
- InputQueue.cs
- RtfControls.cs
- GlyphRunDrawing.cs
- Line.cs
- SystemUnicastIPAddressInformation.cs
- WebPartConnectionsCloseVerb.cs
- ConfigurationFileMap.cs
- WindowsToolbarItemAsMenuItem.cs
- DataGridViewImageCell.cs
- FixedSOMTableRow.cs
- EntityType.cs
- ListView.cs
- HeaderCollection.cs
- WSSecureConversationDec2005.cs
- HtmlInputText.cs
- NumberSubstitution.cs
- NetStream.cs
- XamlSerializerUtil.cs
- StyleTypedPropertyAttribute.cs
- InputLangChangeEvent.cs
- AccessibleObject.cs
- Vector.cs
- SharedDp.cs
- BufferedGraphicsContext.cs
- HashCoreRequest.cs
- SQLMoneyStorage.cs
- ExceptionRoutedEventArgs.cs
- SignatureConfirmationElement.cs
- NamedElement.cs
- MemberAccessException.cs
- XmlMapping.cs
- CompilerTypeWithParams.cs
- StylusPointCollection.cs
- ImmComposition.cs
- FlowNode.cs
- SystemIPv4InterfaceProperties.cs
- BulletedListEventArgs.cs
- KoreanCalendar.cs
- SecureStringHasher.cs
- TextSpan.cs
- HttpResponseInternalWrapper.cs
- DataGridCellAutomationPeer.cs
- URLAttribute.cs
- panel.cs
- SegmentInfo.cs
- Group.cs
- WebPartCatalogAddVerb.cs
- SearchForVirtualItemEventArgs.cs
- RMEnrollmentPage2.cs
- ConfigPathUtility.cs
- ServiceTimeoutsElement.cs
- CodeMemberMethod.cs
- SqlProfileProvider.cs
- ConstructorNeedsTagAttribute.cs
- FrameworkTemplate.cs
- CqlParser.cs
- AsymmetricSignatureDeformatter.cs
- ObjectReferenceStack.cs
- AnchoredBlock.cs
- DataContractSerializerElement.cs
- ListItemDetailViewAttribute.cs
- IntellisenseTextBox.cs
- XPathDocument.cs
- InfoCardRSACryptoProvider.cs
- ExternalException.cs
- ListBindableAttribute.cs
- ShapingWorkspace.cs
- SessionStateItemCollection.cs
- QuaternionAnimation.cs
- CardSpaceShim.cs
- ToolStripGrip.cs
- SystemIPv6InterfaceProperties.cs
- BitConverter.cs
- ListViewItem.cs
- GradientStop.cs
- PathFigure.cs
- EntityDataSourceReferenceGroup.cs
- TokenFactoryCredential.cs
- TrustSection.cs