Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / whidbey / NetFXspW7 / 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
- TableStyle.cs
- baseshape.cs
- CancelEventArgs.cs
- CqlLexerHelpers.cs
- Attributes.cs
- Vector.cs
- PagesSection.cs
- ClientProxyGenerator.cs
- AutomationPatternInfo.cs
- Models.cs
- xmlglyphRunInfo.cs
- Item.cs
- RefExpr.cs
- CounterSampleCalculator.cs
- EpmContentDeSerializerBase.cs
- CodeGen.cs
- WebPartManagerInternals.cs
- StringComparer.cs
- SrgsSubset.cs
- LightweightCodeGenerator.cs
- Exception.cs
- XmlIlTypeHelper.cs
- LayoutTableCell.cs
- basecomparevalidator.cs
- ApplyTemplatesAction.cs
- SHA1CryptoServiceProvider.cs
- NonVisualControlAttribute.cs
- SingleQueryOperator.cs
- SqlAliasesReferenced.cs
- WrappedDispatcherException.cs
- SafeEventLogReadHandle.cs
- Font.cs
- _SingleItemRequestCache.cs
- PipelineComponent.cs
- RouteUrlExpressionBuilder.cs
- DecimalFormatter.cs
- EntityContainer.cs
- StringKeyFrameCollection.cs
- SevenBitStream.cs
- Odbc32.cs
- HttpListenerRequestUriBuilder.cs
- ReadOnlyDataSourceView.cs
- ToolbarAUtomationPeer.cs
- Model3DGroup.cs
- GridViewItemAutomationPeer.cs
- Signature.cs
- UnsafeNativeMethods.cs
- EmptyElement.cs
- SoapMessage.cs
- TimeSpanValidator.cs
- CancellationState.cs
- FragmentQueryKB.cs
- WebServicesSection.cs
- GridViewSelectEventArgs.cs
- VisualStyleElement.cs
- MultiTrigger.cs
- BitmapScalingModeValidation.cs
- AppSettingsReader.cs
- WmlSelectionListAdapter.cs
- PixelShader.cs
- SelectedDatesCollection.cs
- ImageKeyConverter.cs
- PipelineComponent.cs
- PenContexts.cs
- ServiceDescriptionData.cs
- _SpnDictionary.cs
- SchemaConstraints.cs
- WebHttpSecurityModeHelper.cs
- DeviceContext2.cs
- SettingsPropertyNotFoundException.cs
- SmtpTransport.cs
- Int64Converter.cs
- TextServicesContext.cs
- EncoderReplacementFallback.cs
- CodeStatementCollection.cs
- GC.cs
- OlePropertyStructs.cs
- StatusBar.cs
- DropShadowEffect.cs
- LineVisual.cs
- PersistenceTypeAttribute.cs
- AsymmetricAlgorithm.cs
- DataPagerFieldCommandEventArgs.cs
- GlobalizationAssembly.cs
- basenumberconverter.cs
- TemplateKeyConverter.cs
- GetWinFXPath.cs
- NumberFunctions.cs
- SharedPersonalizationStateInfo.cs
- SingleConverter.cs
- CollectionEditorDialog.cs
- WindowInteractionStateTracker.cs
- Command.cs
- DescendantBaseQuery.cs
- UInt16Converter.cs
- ArgumentException.cs
- VectorCollection.cs
- VisemeEventArgs.cs
- RecordsAffectedEventArgs.cs
- EventListener.cs