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
- ErrorLog.cs
- XmlSchemaInferenceException.cs
- InputBuffer.cs
- ConfigurationStrings.cs
- UserValidatedEventArgs.cs
- WebPartZoneCollection.cs
- PathData.cs
- UndoEngine.cs
- CompModSwitches.cs
- Vector3DKeyFrameCollection.cs
- DataBindingExpressionBuilder.cs
- ResourceProperty.cs
- Int64AnimationBase.cs
- ObjectDataSourceView.cs
- MetaChildrenColumn.cs
- KeyedHashAlgorithm.cs
- NewItemsContextMenuStrip.cs
- Int32Storage.cs
- HWStack.cs
- DLinqTableProvider.cs
- PasswordRecovery.cs
- ComponentRenameEvent.cs
- ScaleTransform.cs
- AssemblyCollection.cs
- TypeNameConverter.cs
- GenericsInstances.cs
- ScrollEventArgs.cs
- LocationUpdates.cs
- Bold.cs
- PageStatePersister.cs
- DataGridViewCell.cs
- MatrixTransform3D.cs
- TranslateTransform.cs
- prefixendpointaddressmessagefiltertable.cs
- WebScriptServiceHost.cs
- Enum.cs
- ScriptingAuthenticationServiceSection.cs
- DrawListViewItemEventArgs.cs
- AuditLog.cs
- TextSelectionHighlightLayer.cs
- EnterpriseServicesHelper.cs
- PieceNameHelper.cs
- SparseMemoryStream.cs
- FunctionImportElement.cs
- FileDialogPermission.cs
- TransactionsSectionGroup.cs
- ControlTemplate.cs
- RSAPKCS1SignatureFormatter.cs
- SharedPersonalizationStateInfo.cs
- validationstate.cs
- InteropAutomationProvider.cs
- ByteRangeDownloader.cs
- TdsRecordBufferSetter.cs
- OdbcErrorCollection.cs
- NumericUpDownAccelerationCollection.cs
- Activity.cs
- SoapIgnoreAttribute.cs
- QilExpression.cs
- GridViewRowEventArgs.cs
- MimeMapping.cs
- ExpandoClass.cs
- PageParser.cs
- ManagedFilter.cs
- COM2ComponentEditor.cs
- ScrollBarRenderer.cs
- SqlDependency.cs
- SafeCryptoHandles.cs
- EdmType.cs
- DataGridItem.cs
- Regex.cs
- ResourceContainer.cs
- CompiledRegexRunner.cs
- CodeTypeReferenceCollection.cs
- RegexCode.cs
- ParserStreamGeometryContext.cs
- ParallelDesigner.cs
- ColorComboBox.cs
- Object.cs
- WebRequestModulesSection.cs
- ValidationResult.cs
- ModuleBuilder.cs
- TraceHwndHost.cs
- IntersectQueryOperator.cs
- DebugView.cs
- AdapterDictionary.cs
- OleDbConnectionPoolGroupProviderInfo.cs
- ApplicationSecurityInfo.cs
- MultiSelectRootGridEntry.cs
- SmtpNegotiateAuthenticationModule.cs
- CodeArrayIndexerExpression.cs
- InputElement.cs
- DataColumn.cs
- WmlTextBoxAdapter.cs
- RestClientProxyHandler.cs
- DrawingContextDrawingContextWalker.cs
- MiniParameterInfo.cs
- BaseCodePageEncoding.cs
- RtfControls.cs
- GridViewRowPresenterBase.cs
- WeakHashtable.cs