Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / whidbey / NetFxQFE / ndp / fx / src / CompMod / System / ComponentModel / DesignTimeVisibleAttribute.cs / 1 / DesignTimeVisibleAttribute.cs
//------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------------------- /* */ namespace System.ComponentModel { using System; using System.Security.Permissions; ////// [AttributeUsage(AttributeTargets.Class | AttributeTargets.Interface)] public sealed class DesignTimeVisibleAttribute : Attribute { private bool visible; ////// DesignTimeVisibileAttribute marks a component's visibility. If /// DesignTimeVisibileAttribute.Yes is present, a visual designer can show /// this component on a designer. /// ////// Creates a new DesignTimeVisibleAttribute with the visible /// property set to the given value. /// public DesignTimeVisibleAttribute(bool visible) { this.visible = visible; } ////// Creates a new DesignTimeVisibleAttribute set to the default /// value of true. /// public DesignTimeVisibleAttribute() { } ////// True if this component should be shown at design time, or false /// if it shouldn't. /// public bool Visible { get { return visible; } } ////// Marks a component as visible in a visual designer. /// public static readonly DesignTimeVisibleAttribute Yes = new DesignTimeVisibleAttribute(true); ////// Marks a component as not visible in a visual designer. /// public static readonly DesignTimeVisibleAttribute No = new DesignTimeVisibleAttribute(false); ////// The default visiblity. (equal to Yes.) /// public static readonly DesignTimeVisibleAttribute Default = Yes; ////// public override bool Equals(object obj) { if (obj == this) { return true; } DesignTimeVisibleAttribute other = obj as DesignTimeVisibleAttribute; return other != null && other.Visible == visible; } ///[To be supplied.] ////// public override int GetHashCode() { return typeof(DesignTimeVisibleAttribute).GetHashCode() ^ (visible ? -1 : 0); } ///[To be supplied.] ////// public override bool IsDefaultAttribute() { return (this.Visible == Default.Visible); } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. //------------------------------------------------------------------------------ //[To be supplied.] ///// Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------------------- /* */ namespace System.ComponentModel { using System; using System.Security.Permissions; ////// [AttributeUsage(AttributeTargets.Class | AttributeTargets.Interface)] public sealed class DesignTimeVisibleAttribute : Attribute { private bool visible; ////// DesignTimeVisibileAttribute marks a component's visibility. If /// DesignTimeVisibileAttribute.Yes is present, a visual designer can show /// this component on a designer. /// ////// Creates a new DesignTimeVisibleAttribute with the visible /// property set to the given value. /// public DesignTimeVisibleAttribute(bool visible) { this.visible = visible; } ////// Creates a new DesignTimeVisibleAttribute set to the default /// value of true. /// public DesignTimeVisibleAttribute() { } ////// True if this component should be shown at design time, or false /// if it shouldn't. /// public bool Visible { get { return visible; } } ////// Marks a component as visible in a visual designer. /// public static readonly DesignTimeVisibleAttribute Yes = new DesignTimeVisibleAttribute(true); ////// Marks a component as not visible in a visual designer. /// public static readonly DesignTimeVisibleAttribute No = new DesignTimeVisibleAttribute(false); ////// The default visiblity. (equal to Yes.) /// public static readonly DesignTimeVisibleAttribute Default = Yes; ////// public override bool Equals(object obj) { if (obj == this) { return true; } DesignTimeVisibleAttribute other = obj as DesignTimeVisibleAttribute; return other != null && other.Visible == visible; } ///[To be supplied.] ////// public override int GetHashCode() { return typeof(DesignTimeVisibleAttribute).GetHashCode() ^ (visible ? -1 : 0); } ///[To be supplied.] ////// public override bool IsDefaultAttribute() { return (this.Visible == Default.Visible); } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007.[To be supplied.] ///
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- IApplicationTrustManager.cs
- SafeHandles.cs
- BackStopAuthenticationModule.cs
- PerformanceCounterPermissionEntry.cs
- XhtmlBasicPhoneCallAdapter.cs
- CombinedGeometry.cs
- ListItemConverter.cs
- OleDbStruct.cs
- PropertyOrder.cs
- GeneralTransform2DTo3DTo2D.cs
- Component.cs
- ServiceEndpoint.cs
- CellPartitioner.cs
- PhysicalAddress.cs
- PartitionResolver.cs
- AnimationLayer.cs
- NavigationPropertyAccessor.cs
- BaseTemplateBuildProvider.cs
- Context.cs
- ProcessHostMapPath.cs
- StateFinalizationActivity.cs
- RuntimeCompatibilityAttribute.cs
- ChannelCacheDefaults.cs
- PageSettings.cs
- SQLBinaryStorage.cs
- TransformGroup.cs
- DbInsertCommandTree.cs
- EncryptedXml.cs
- UnsafeNativeMethods.cs
- AssociationTypeEmitter.cs
- SolidColorBrush.cs
- DocumentsTrace.cs
- Highlights.cs
- CodeDomDecompiler.cs
- SerializationException.cs
- FileInfo.cs
- QuaternionIndependentAnimationStorage.cs
- UserPreferenceChangingEventArgs.cs
- AncestorChangedEventArgs.cs
- DataBindingCollection.cs
- DrawingImage.cs
- HTTPAPI_VERSION.cs
- RegionInfo.cs
- DocumentSchemaValidator.cs
- CharEnumerator.cs
- CodeIdentifier.cs
- ModelChangedEventArgsImpl.cs
- ProjectionCamera.cs
- SourceFilter.cs
- SEHException.cs
- PowerStatus.cs
- Internal.cs
- AdjustableArrowCap.cs
- InvalidOleVariantTypeException.cs
- Component.cs
- X509SubjectKeyIdentifierClause.cs
- GrammarBuilderWildcard.cs
- ListChangedEventArgs.cs
- Number.cs
- LinearKeyFrames.cs
- DataGridViewTextBoxCell.cs
- DashStyle.cs
- RowsCopiedEventArgs.cs
- OleAutBinder.cs
- StateFinalizationActivity.cs
- smtppermission.cs
- KeyFrames.cs
- EdmRelationshipRoleAttribute.cs
- QueryBranchOp.cs
- DescriptionAttribute.cs
- SelectionEditor.cs
- EdmProperty.cs
- DataException.cs
- EndpointAddressElementBase.cs
- TakeOrSkipWhileQueryOperator.cs
- TracingConnectionListener.cs
- ProxyManager.cs
- QilVisitor.cs
- XmlSchemaAnyAttribute.cs
- XmlProcessingInstruction.cs
- DbSetClause.cs
- EndpointAddressProcessor.cs
- RenderContext.cs
- TargetFrameworkAttribute.cs
- BoundColumn.cs
- SqlDeflator.cs
- PointLightBase.cs
- DataBindingExpressionBuilder.cs
- BuildProviderUtils.cs
- MemoryStream.cs
- ReflectionHelper.cs
- Int32RectConverter.cs
- PageContentAsyncResult.cs
- Cell.cs
- TransformGroup.cs
- JsonFormatGeneratorStatics.cs
- GACMembershipCondition.cs
- GridViewSelectEventArgs.cs
- SystemResourceHost.cs
- CompilerInfo.cs