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
- ExecutionContext.cs
- ManifestBasedResourceGroveler.cs
- Pair.cs
- XmlSequenceWriter.cs
- StreamGeometry.cs
- ComboBoxAutomationPeer.cs
- ToolStripDesignerAvailabilityAttribute.cs
- BrowserTree.cs
- MenuItemStyle.cs
- ResourceDisplayNameAttribute.cs
- HttpListenerResponse.cs
- Highlights.cs
- InputDevice.cs
- DataGridViewRowCollection.cs
- SHA256.cs
- SoapIgnoreAttribute.cs
- xmlformatgeneratorstatics.cs
- XmlRootAttribute.cs
- CorePropertiesFilter.cs
- ComContractElement.cs
- Error.cs
- StringInfo.cs
- OdbcStatementHandle.cs
- Helper.cs
- ApplicationHost.cs
- PropertyNames.cs
- DependencyObject.cs
- MachineSettingsSection.cs
- BindingExpressionUncommonField.cs
- AdapterDictionary.cs
- EmptyEnumerator.cs
- OAVariantLib.cs
- TdsEnums.cs
- DomainUpDown.cs
- StyleCollection.cs
- CodeCompileUnit.cs
- ResourceDisplayNameAttribute.cs
- NativeCppClassAttribute.cs
- SignedPkcs7.cs
- ControlPropertyNameConverter.cs
- NetCodeGroup.cs
- ModelItemImpl.cs
- OSEnvironmentHelper.cs
- RectAnimationUsingKeyFrames.cs
- SkewTransform.cs
- UnsafeNativeMethods.cs
- NameValueConfigurationElement.cs
- HwndSubclass.cs
- SafePEFileHandle.cs
- AnyAllSearchOperator.cs
- SmtpReplyReaderFactory.cs
- ToolBar.cs
- SchemaAttDef.cs
- ModelTreeManager.cs
- _LocalDataStoreMgr.cs
- DataGridHeaderBorder.cs
- ContentElement.cs
- BStrWrapper.cs
- UnsafeNativeMethods.cs
- SetStoryboardSpeedRatio.cs
- RestHandlerFactory.cs
- SqlDataSourceStatusEventArgs.cs
- CheckBoxRenderer.cs
- DocumentOrderComparer.cs
- SpecularMaterial.cs
- DescendantOverDescendantQuery.cs
- UIElement3D.cs
- ComponentResourceKey.cs
- DeflateStream.cs
- CustomValidator.cs
- VoiceChangeEventArgs.cs
- ElementUtil.cs
- AddInSegmentDirectoryNotFoundException.cs
- TableLayoutStyleCollection.cs
- DesignTimeTemplateParser.cs
- PrivateFontCollection.cs
- MatrixStack.cs
- NumberSubstitution.cs
- ConfigurationPermission.cs
- Internal.cs
- ToolStripControlHost.cs
- DesignerRegionCollection.cs
- DataGridCellInfo.cs
- MetadataItemEmitter.cs
- ModifierKeysValueSerializer.cs
- ContentWrapperAttribute.cs
- CancellationTokenRegistration.cs
- SplineKeyFrames.cs
- RoutedEventArgs.cs
- DbDataRecord.cs
- XmlBaseReader.cs
- FontDifferentiator.cs
- LogicalMethodInfo.cs
- WCFBuildProvider.cs
- fixedPageContentExtractor.cs
- CompositeDataBoundControl.cs
- MergeFilterQuery.cs
- KnownTypesProvider.cs
- HtmlTableRowCollection.cs
- ProfileBuildProvider.cs