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
- EffectiveValueEntry.cs
- BooleanToVisibilityConverter.cs
- Journaling.cs
- FreezableCollection.cs
- TdsValueSetter.cs
- PtsContext.cs
- StrongNameMembershipCondition.cs
- XmlDataSourceNodeDescriptor.cs
- DataGridViewCellValueEventArgs.cs
- RadialGradientBrush.cs
- Header.cs
- ColumnMapTranslator.cs
- SmtpCommands.cs
- TrackingParameters.cs
- CompilerError.cs
- CatalogZoneBase.cs
- WebPartTransformer.cs
- BooleanKeyFrameCollection.cs
- TextWriter.cs
- ListDependantCardsRequest.cs
- SqlDependencyUtils.cs
- ProtectedProviderSettings.cs
- FileLevelControlBuilderAttribute.cs
- BitmapPalettes.cs
- CompiledQueryCacheKey.cs
- LostFocusEventManager.cs
- Thumb.cs
- StringUtil.cs
- VersionPair.cs
- MdImport.cs
- EntitySet.cs
- MarshalByValueComponent.cs
- LinqTreeNodeEvaluator.cs
- DataBoundControl.cs
- BaseTemplateBuildProvider.cs
- XmlDownloadManager.cs
- AstTree.cs
- relpropertyhelper.cs
- TcpProcessProtocolHandler.cs
- ExtendedProtectionPolicy.cs
- RemotingConfiguration.cs
- ExtensionElementCollection.cs
- EmptyEnumerator.cs
- GridProviderWrapper.cs
- RC2CryptoServiceProvider.cs
- VersionedStream.cs
- PrivacyNoticeElement.cs
- KnownColorTable.cs
- _NtlmClient.cs
- ClientUtils.cs
- BodyWriter.cs
- LinqMaximalSubtreeNominator.cs
- FunctionImportMapping.cs
- TextSelection.cs
- TextTreeInsertElementUndoUnit.cs
- GridViewRowPresenter.cs
- XmlLoader.cs
- CodeMemberEvent.cs
- FileVersionInfo.cs
- SelectionManager.cs
- RoleGroupCollection.cs
- TablePattern.cs
- ObjectViewFactory.cs
- StatusBarItemAutomationPeer.cs
- SoapEnumAttribute.cs
- PagedDataSource.cs
- CodeTypeReference.cs
- webclient.cs
- BufferBuilder.cs
- SafeNativeMethods.cs
- ScriptReference.cs
- ApplicationInfo.cs
- CanonicalXml.cs
- BlockCollection.cs
- AddInAdapter.cs
- RIPEMD160Managed.cs
- GenericParameterDataContract.cs
- UIElementAutomationPeer.cs
- OdbcEnvironment.cs
- WebRequestModuleElementCollection.cs
- DropShadowBitmapEffect.cs
- ClientUtils.cs
- SystemIPv6InterfaceProperties.cs
- Empty.cs
- Image.cs
- sqlser.cs
- ToolStripItem.cs
- ClientViaElement.cs
- RecipientInfo.cs
- PolygonHotSpot.cs
- DBParameter.cs
- ScaleTransform.cs
- FixedPageAutomationPeer.cs
- XmlMembersMapping.cs
- SoapHeader.cs
- RecommendedAsConfigurableAttribute.cs
- EdmProperty.cs
- WebAdminConfigurationHelper.cs
- ActivityWithResultConverter.cs
- CacheHelper.cs