Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / WinForms / Managed / System / WinForms / DockingAttribute.cs / 1305376 / DockingAttribute.cs
//------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------------------- namespace System.Windows.Forms { ////// /// [AttributeUsage(AttributeTargets.Class)] public sealed class DockingAttribute : Attribute { private DockingBehavior dockingBehavior; ////// Specifies how a control should be docked by default when added through the designer. /// ////// /// public DockingAttribute() { this.dockingBehavior = DockingBehavior.Never; } ////// Default constructor. /// ////// /// public DockingAttribute(DockingBehavior dockingBehavior) { this.dockingBehavior = dockingBehavior; } ////// Constructor. /// ////// /// public static readonly DockingAttribute Default = new DockingAttribute(); ////// Specifies the default value for the ///. /// This field is read-only. /// /// /// public DockingBehavior DockingBehavior { get { return dockingBehavior; } } ////// DockingBehavior property. /// ////// /// /// public override bool Equals(object obj) { if (obj == this) { return true; } DockingAttribute other = obj as DockingAttribute; return (other != null) && other.DockingBehavior == this.dockingBehavior; } ////// /// public override int GetHashCode() { return dockingBehavior.GetHashCode(); } ///[To be supplied.] ////// /// /// public override bool IsDefaultAttribute() { return (this.Equals(Default)); } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. //------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------------------- namespace System.Windows.Forms { ////// /// [AttributeUsage(AttributeTargets.Class)] public sealed class DockingAttribute : Attribute { private DockingBehavior dockingBehavior; ////// Specifies how a control should be docked by default when added through the designer. /// ////// /// public DockingAttribute() { this.dockingBehavior = DockingBehavior.Never; } ////// Default constructor. /// ////// /// public DockingAttribute(DockingBehavior dockingBehavior) { this.dockingBehavior = dockingBehavior; } ////// Constructor. /// ////// /// public static readonly DockingAttribute Default = new DockingAttribute(); ////// Specifies the default value for the ///. /// This field is read-only. /// /// /// public DockingBehavior DockingBehavior { get { return dockingBehavior; } } ////// DockingBehavior property. /// ////// /// /// public override bool Equals(object obj) { if (obj == this) { return true; } DockingAttribute other = obj as DockingAttribute; return (other != null) && other.DockingBehavior == this.dockingBehavior; } ////// /// public override int GetHashCode() { return dockingBehavior.GetHashCode(); } ///[To be supplied.] ////// /// /// public override bool IsDefaultAttribute() { return (this.Equals(Default)); } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007.
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- _SslState.cs
- SimpleTypeResolver.cs
- SchemaCollectionCompiler.cs
- LocatorPart.cs
- BrowserDefinition.cs
- DispatcherTimer.cs
- ToolboxDataAttribute.cs
- SafeNativeMethodsOther.cs
- Dispatcher.cs
- baseshape.cs
- DataSourceXmlSubItemAttribute.cs
- ElementMarkupObject.cs
- EntityDataSourceValidationException.cs
- FontDialog.cs
- ControlDesigner.cs
- MediaScriptCommandRoutedEventArgs.cs
- OdbcHandle.cs
- GenericArgumentsUpdater.cs
- ProxyDataContractResolver.cs
- RemoteDebugger.cs
- DecoratedNameAttribute.cs
- UntypedNullExpression.cs
- StorageTypeMapping.cs
- _ScatterGatherBuffers.cs
- InvalidAsynchronousStateException.cs
- FormViewInsertedEventArgs.cs
- DrawingBrush.cs
- APCustomTypeDescriptor.cs
- Paragraph.cs
- IERequestCache.cs
- StylusPointCollection.cs
- IListConverters.cs
- ButtonRenderer.cs
- FindResponse.cs
- DataSetSchema.cs
- StickyNoteContentControl.cs
- OpenFileDialog.cs
- DocComment.cs
- OrderedEnumerableRowCollection.cs
- StringBuilder.cs
- AlignmentXValidation.cs
- ActiveXSite.cs
- BaseCollection.cs
- _ListenerRequestStream.cs
- DataRowChangeEvent.cs
- StylusPointPropertyInfo.cs
- typedescriptorpermissionattribute.cs
- HttpException.cs
- InternalBufferManager.cs
- path.cs
- PropertyMap.cs
- PagedControl.cs
- WebPageTraceListener.cs
- SQLDecimalStorage.cs
- TimeoutException.cs
- QilGeneratorEnv.cs
- PermissionRequestEvidence.cs
- SolidColorBrush.cs
- EventArgs.cs
- ModuleElement.cs
- FieldAccessException.cs
- Lasso.cs
- ScriptingSectionGroup.cs
- EntityProviderFactory.cs
- ICspAsymmetricAlgorithm.cs
- WmiEventSink.cs
- TextBox.cs
- CounterCreationDataCollection.cs
- ZoneIdentityPermission.cs
- ParameterModifier.cs
- BackgroundFormatInfo.cs
- SqlException.cs
- HtmlGenericControl.cs
- MetadataCacheItem.cs
- ListViewGroup.cs
- ClickablePoint.cs
- AspNetHostingPermission.cs
- ClipboardData.cs
- ArglessEventHandlerProxy.cs
- HWStack.cs
- LocationSectionRecord.cs
- RoleManagerSection.cs
- SoapMessage.cs
- XXXOnTypeBuilderInstantiation.cs
- TextCompositionManager.cs
- ComponentResourceKeyConverter.cs
- FixedSOMGroup.cs
- CompilationPass2TaskInternal.cs
- SqlHelper.cs
- WeakRefEnumerator.cs
- RegexCompilationInfo.cs
- BaseParagraph.cs
- ExpressionLexer.cs
- MemberRestriction.cs
- IArgumentProvider.cs
- CollectionBuilder.cs
- Drawing.cs
- LostFocusEventManager.cs
- COM2PropertyDescriptor.cs
- DBConnection.cs