Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / wpf / src / Shared / MS / Internal / Generated / GradientSpreadMethodValidation.cs / 1305600 / GradientSpreadMethodValidation.cs
//---------------------------------------------------------------------------- // //// Copyright (C) Microsoft Corporation. All rights reserved. // // // This file was generated, please do not edit it directly. // // Please see http://wiki/default.aspx/Microsoft.Projects.Avalon/MilCodeGen.html for more information. // //--------------------------------------------------------------------------- using System; using System.ComponentModel; using System.Runtime.InteropServices; using MS.Internal.PresentationCore; #if PRESENTATION_CORE using SR=MS.Internal.PresentationCore.SR; using SRID=MS.Internal.PresentationCore.SRID; #else using SR=System.Windows.SR; using SRID=System.Windows.SRID; #endif namespace System.Windows.Media { internal static partial class ValidateEnums { ////// Returns whether or not an enumeration instance a valid value. /// This method is designed to be used with ValidateValueCallback, and thus /// matches it's prototype. /// /// /// Enumeration value to validate. /// ///'true' if the enumeration contains a valid value, 'false' otherwise. public static bool IsGradientSpreadMethodValid(object valueObject) { GradientSpreadMethod value = (GradientSpreadMethod) valueObject; return (value == GradientSpreadMethod.Pad) || (value == GradientSpreadMethod.Reflect) || (value == GradientSpreadMethod.Repeat); } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. // Copyright (c) Microsoft Corporation. All rights reserved. //---------------------------------------------------------------------------- // //// Copyright (C) Microsoft Corporation. All rights reserved. // // // This file was generated, please do not edit it directly. // // Please see http://wiki/default.aspx/Microsoft.Projects.Avalon/MilCodeGen.html for more information. // //--------------------------------------------------------------------------- using System; using System.ComponentModel; using System.Runtime.InteropServices; using MS.Internal.PresentationCore; #if PRESENTATION_CORE using SR=MS.Internal.PresentationCore.SR; using SRID=MS.Internal.PresentationCore.SRID; #else using SR=System.Windows.SR; using SRID=System.Windows.SRID; #endif namespace System.Windows.Media { internal static partial class ValidateEnums { ////// Returns whether or not an enumeration instance a valid value. /// This method is designed to be used with ValidateValueCallback, and thus /// matches it's prototype. /// /// /// Enumeration value to validate. /// ///'true' if the enumeration contains a valid value, 'false' otherwise. public static bool IsGradientSpreadMethodValid(object valueObject) { GradientSpreadMethod value = (GradientSpreadMethod) valueObject; return (value == GradientSpreadMethod.Pad) || (value == GradientSpreadMethod.Reflect) || (value == GradientSpreadMethod.Repeat); } } } // 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
- SecureConversationServiceCredential.cs
- SettingsProperty.cs
- InfoCardRSAPKCS1SignatureFormatter.cs
- Activation.cs
- TemplateComponentConnector.cs
- LineBreakRecord.cs
- ProfileInfo.cs
- RegexStringValidator.cs
- SessionStateModule.cs
- ControlValuePropertyAttribute.cs
- __Error.cs
- DocumentXmlWriter.cs
- SocketElement.cs
- Scene3D.cs
- FocusTracker.cs
- SourceFilter.cs
- XXXInfos.cs
- BitmapEffectvisualstate.cs
- ListViewGroupCollectionEditor.cs
- InkCanvasInnerCanvas.cs
- AppDomainShutdownMonitor.cs
- _OSSOCK.cs
- DbConnectionPoolCounters.cs
- ExceptionRoutedEventArgs.cs
- VerificationException.cs
- CompositeTypefaceMetrics.cs
- BindingListCollectionView.cs
- BooleanFunctions.cs
- XmlAnyAttributeAttribute.cs
- OrCondition.cs
- MulticastDelegate.cs
- RepeatButtonAutomationPeer.cs
- CaseStatement.cs
- PanelStyle.cs
- LabelTarget.cs
- RestClientProxyHandler.cs
- CodeCompileUnit.cs
- ProfessionalColorTable.cs
- HtmlUtf8RawTextWriter.cs
- CatalogPartChrome.cs
- ParsedAttributeCollection.cs
- AnyReturnReader.cs
- SmiGettersStream.cs
- TimeSpanMinutesConverter.cs
- CookieParameter.cs
- ToolStripPanelCell.cs
- HebrewCalendar.cs
- IDataContractSurrogate.cs
- WebResourceUtil.cs
- DataGridViewControlCollection.cs
- InfoCardSymmetricCrypto.cs
- HttpServerVarsCollection.cs
- GridViewRowEventArgs.cs
- FileUpload.cs
- CodeTypeConstructor.cs
- StrongNamePublicKeyBlob.cs
- OdbcReferenceCollection.cs
- EventListener.cs
- SaveFileDialog.cs
- ReceiveSecurityHeaderElementManager.cs
- PreProcessor.cs
- UnmanagedMemoryStreamWrapper.cs
- Span.cs
- SafeNativeMethods.cs
- Token.cs
- ZipIOExtraField.cs
- XmlRawWriter.cs
- RegexInterpreter.cs
- Psha1DerivedKeyGenerator.cs
- JournalNavigationScope.cs
- FilterEventArgs.cs
- AxParameterData.cs
- ConnectionsZone.cs
- EndPoint.cs
- CertificateManager.cs
- OrderPreservingPipeliningMergeHelper.cs
- ListenerConstants.cs
- ViewValidator.cs
- OptimizedTemplateContent.cs
- XmlNodeComparer.cs
- DesignerActionService.cs
- InternalMappingException.cs
- XmlBufferedByteStreamReader.cs
- FastEncoderStatics.cs
- XPathBinder.cs
- ComponentResourceManager.cs
- GridViewSelectEventArgs.cs
- PathSegment.cs
- DataSourceCacheDurationConverter.cs
- ThicknessAnimation.cs
- AutomationEventArgs.cs
- StringExpressionSet.cs
- QuotedPrintableStream.cs
- CompilerParameters.cs
- PointLight.cs
- ObjectManager.cs
- SourceElementsCollection.cs
- ListViewSelectEventArgs.cs
- MessageHeaderInfoTraceRecord.cs
- EpmSyndicationContentSerializer.cs