Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / whidbey / netfxsp / ndp / fx / src / WinForms / Managed / System / WinForms / DockingAttribute.cs / 1 / 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
- COM2IDispatchConverter.cs
- FrugalList.cs
- ControlDesigner.cs
- CommonRemoteMemoryBlock.cs
- BitmapEffect.cs
- DataGridViewCellContextMenuStripNeededEventArgs.cs
- XmlSchemaAnyAttribute.cs
- GridItemProviderWrapper.cs
- IdentityNotMappedException.cs
- WebPartConnectionsConnectVerb.cs
- ConnectionStringEditor.cs
- ThemeDirectoryCompiler.cs
- SelectionWordBreaker.cs
- InputScopeAttribute.cs
- DPTypeDescriptorContext.cs
- VirtualPathExtension.cs
- OleDbConnectionFactory.cs
- Compilation.cs
- IndexOutOfRangeException.cs
- AstNode.cs
- XmlSchemaInfo.cs
- DataSourceView.cs
- SecurityCriticalDataForSet.cs
- ToolStripContentPanel.cs
- ProfileGroupSettings.cs
- DrawingState.cs
- DiffuseMaterial.cs
- SQLMembershipProvider.cs
- InvalidPrinterException.cs
- RoutedPropertyChangedEventArgs.cs
- AsyncOperationManager.cs
- GenerateTemporaryAssemblyTask.cs
- LayoutTableCell.cs
- HttpWebResponse.cs
- ImagingCache.cs
- UIPropertyMetadata.cs
- EventTrigger.cs
- CreateBookmarkScope.cs
- KeyValueSerializer.cs
- XmlDataLoader.cs
- Int32CollectionConverter.cs
- StreamInfo.cs
- TreeNodeStyleCollection.cs
- EntityUtil.cs
- ProxyElement.cs
- DataGridViewRowsAddedEventArgs.cs
- WhitespaceRuleLookup.cs
- EastAsianLunisolarCalendar.cs
- Ops.cs
- TextControlDesigner.cs
- PageThemeBuildProvider.cs
- ExcCanonicalXml.cs
- ListenerChannelContext.cs
- AppLevelCompilationSectionCache.cs
- CanonicalXml.cs
- ListViewTableRow.cs
- PolyLineSegmentFigureLogic.cs
- ConditionalAttribute.cs
- TemplateBuilder.cs
- FlowDocumentReader.cs
- UdpTransportBindingElement.cs
- GlyphInfoList.cs
- SystemDiagnosticsSection.cs
- SvcMapFileLoader.cs
- Configuration.cs
- GridLengthConverter.cs
- ChannelDispatcherBase.cs
- ReferencedAssembly.cs
- PointAnimation.cs
- DbDataReader.cs
- ExpressionEvaluator.cs
- MethodImplAttribute.cs
- RequiredArgumentAttribute.cs
- NumberEdit.cs
- DataGridViewBindingCompleteEventArgs.cs
- AnnotationHelper.cs
- VariableAction.cs
- EntityContainerRelationshipSetEnd.cs
- AssemblyName.cs
- ComPlusTypeLoader.cs
- Help.cs
- XmlSchemaAll.cs
- QilValidationVisitor.cs
- ZipPackage.cs
- ComplexPropertyEntry.cs
- Propagator.JoinPropagator.cs
- AddToCollection.cs
- AttributeAction.cs
- control.ime.cs
- XmlSerializerImportOptions.cs
- FixedDocument.cs
- PlatformNotSupportedException.cs
- UnmanagedMemoryStreamWrapper.cs
- WindowsEditBox.cs
- MemberHolder.cs
- LogStore.cs
- AmbiguousMatchException.cs
- Brush.cs
- Wizard.cs
- DataGridViewCellMouseEventArgs.cs