Code:
/ FX-1434 / FX-1434 / 1.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
- _SafeNetHandles.cs
- MissingManifestResourceException.cs
- AppDomainUnloadedException.cs
- SecureUICommand.cs
- Figure.cs
- ClonableStack.cs
- SqlClientPermission.cs
- BamlVersionHeader.cs
- LinearGradientBrush.cs
- Translator.cs
- LambdaCompiler.ControlFlow.cs
- IOThreadTimer.cs
- codemethodreferenceexpression.cs
- ControlCachePolicy.cs
- ContextStaticAttribute.cs
- FeatureManager.cs
- ToolStripScrollButton.cs
- BitmapEffectInputConnector.cs
- MobileContainerDesigner.cs
- DialogResultConverter.cs
- Underline.cs
- AsyncOperationManager.cs
- NullNotAllowedCollection.cs
- Collection.cs
- ExternalCalls.cs
- ContentOperations.cs
- PasswordBoxAutomationPeer.cs
- ReaderContextStackData.cs
- Int32Rect.cs
- columnmapkeybuilder.cs
- SequenceQuery.cs
- XmlElementList.cs
- ListViewHitTestInfo.cs
- ProfileGroupSettings.cs
- Point3D.cs
- ResourceSetExpression.cs
- FlowDocumentReader.cs
- RemoveStoryboard.cs
- StrokeIntersection.cs
- SqlUnionizer.cs
- BookmarkEventArgs.cs
- unsafenativemethodsother.cs
- QuestionEventArgs.cs
- SecureStringHasher.cs
- RequestNavigateEventArgs.cs
- FileLevelControlBuilderAttribute.cs
- FixedSOMTable.cs
- ViewSimplifier.cs
- util.cs
- QueryException.cs
- ApplicationInfo.cs
- BindingExpressionUncommonField.cs
- StrokeNodeOperations2.cs
- DPCustomTypeDescriptor.cs
- GridItemPattern.cs
- TransportChannelFactory.cs
- NonSerializedAttribute.cs
- DocumentPageViewAutomationPeer.cs
- IdentifierCollection.cs
- TripleDESCryptoServiceProvider.cs
- MemberAccessException.cs
- CheckoutException.cs
- HtmlForm.cs
- Array.cs
- DependencyPropertyConverter.cs
- ColorAnimationBase.cs
- XmlSchemaComplexType.cs
- TextSelection.cs
- _TransmitFileOverlappedAsyncResult.cs
- Geometry.cs
- InstanceDataCollection.cs
- GestureRecognitionResult.cs
- TextDecorationUnitValidation.cs
- CodeTypeDeclaration.cs
- TickBar.cs
- TransactionException.cs
- OdbcException.cs
- FacetEnabledSchemaElement.cs
- HtmlInputPassword.cs
- Point3DAnimationUsingKeyFrames.cs
- XMLUtil.cs
- Nodes.cs
- Underline.cs
- ClientFormsAuthenticationMembershipProvider.cs
- ValidationHelpers.cs
- ApplicationGesture.cs
- Condition.cs
- CodeBlockBuilder.cs
- RelatedPropertyManager.cs
- ValueSerializerAttribute.cs
- storepermission.cs
- UIElementPropertyUndoUnit.cs
- ResourcePool.cs
- QueryOutputWriter.cs
- SelectionItemProviderWrapper.cs
- securitycriticaldataClass.cs
- FileLogRecordHeader.cs
- AnchoredBlock.cs
- BitmapEffectRenderDataResource.cs
- PerCallInstanceContextProvider.cs