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
- DbConvert.cs
- AspNetPartialTrustHelpers.cs
- InvalidPipelineStoreException.cs
- DataSourceHelper.cs
- FlowDocumentReader.cs
- EnumBuilder.cs
- NotCondition.cs
- ConfigurationValidatorBase.cs
- DataGridAddNewRow.cs
- FrameworkElementFactoryMarkupObject.cs
- DataGridViewToolTip.cs
- FixedTextView.cs
- FocusChangedEventArgs.cs
- SmtpNegotiateAuthenticationModule.cs
- Binding.cs
- CompiledIdentityConstraint.cs
- UserPreferenceChangedEventArgs.cs
- CachedRequestParams.cs
- QueueSurrogate.cs
- ListViewUpdatedEventArgs.cs
- ISFTagAndGuidCache.cs
- Single.cs
- SimpleTextLine.cs
- VirtualPathProvider.cs
- Operator.cs
- QuadraticBezierSegment.cs
- ContentElement.cs
- CategoryAttribute.cs
- MasterPageCodeDomTreeGenerator.cs
- RTLAwareMessageBox.cs
- XmlSchemaFacet.cs
- CallbackException.cs
- ListControlConvertEventArgs.cs
- PixelFormat.cs
- ExceptionUtil.cs
- ParamArrayAttribute.cs
- Binding.cs
- LongPath.cs
- MemberInfoSerializationHolder.cs
- _HeaderInfoTable.cs
- Parser.cs
- HttpConfigurationSystem.cs
- CodeBinaryOperatorExpression.cs
- XmlLangPropertyAttribute.cs
- columnmapkeybuilder.cs
- UiaCoreTypesApi.cs
- XhtmlBasicPageAdapter.cs
- QilChoice.cs
- WCFServiceClientProxyGenerator.cs
- UnsafeNativeMethods.cs
- StateMachineAction.cs
- PagedDataSource.cs
- StyleReferenceConverter.cs
- TextRangeEdit.cs
- TextTreeRootTextBlock.cs
- PageCatalogPart.cs
- RankException.cs
- GlyphCollection.cs
- TextWriterEngine.cs
- ToolBarButtonClickEvent.cs
- SessionChannels.cs
- ContentIterators.cs
- UrlPath.cs
- RequestQueryParser.cs
- Point3D.cs
- PropertyCollection.cs
- SHA384.cs
- WorkflowMarkupSerializationManager.cs
- DisplayMemberTemplateSelector.cs
- ZoomPercentageConverter.cs
- ConfigurationValidatorAttribute.cs
- ScriptHandlerFactory.cs
- HybridDictionary.cs
- IndexerNameAttribute.cs
- GenericsNotImplementedException.cs
- WebPartConnectionsDisconnectVerb.cs
- VirtualizedCellInfoCollection.cs
- GPRECT.cs
- ValuePattern.cs
- MethodBuilderInstantiation.cs
- ConvertersCollection.cs
- HttpHeaderCollection.cs
- XmlSchemaObject.cs
- OutputCacheSettings.cs
- Accessors.cs
- SqlGenerator.cs
- ExpandCollapsePattern.cs
- ObjectNotFoundException.cs
- TemplateXamlTreeBuilder.cs
- MessageDesigner.cs
- PixelFormats.cs
- OletxVolatileEnlistment.cs
- Registry.cs
- Grammar.cs
- ParallelEnumerableWrapper.cs
- RenderTargetBitmap.cs
- MetabaseServerConfig.cs
- MobileSysDescriptionAttribute.cs
- VectorCollection.cs
- initElementDictionary.cs