Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / Orcas / SP / wpf / src / Shared / MS / Internal / Generated / GradientSpreadMethodValidation.cs / 1 / 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
- ErrorTableItemStyle.cs
- WebConfigurationHostFileChange.cs
- CodeObjectCreateExpression.cs
- CaseInsensitiveComparer.cs
- _SSPISessionCache.cs
- CodeTypeOfExpression.cs
- AppDomainUnloadedException.cs
- XmlNamespaceMappingCollection.cs
- EventSetter.cs
- StylusPointProperties.cs
- TextEndOfParagraph.cs
- PeerTransportCredentialType.cs
- TopClause.cs
- WindowsSpinner.cs
- Utility.cs
- ComponentResourceKeyConverter.cs
- ISAPIWorkerRequest.cs
- TypeBuilder.cs
- BinHexDecoder.cs
- RequestQueue.cs
- Rect3DConverter.cs
- XPathDocumentIterator.cs
- PageOrientation.cs
- MouseCaptureWithinProperty.cs
- Effect.cs
- Int16Animation.cs
- SHA512CryptoServiceProvider.cs
- Char.cs
- WindowsSolidBrush.cs
- SystemResourceHost.cs
- FrugalList.cs
- WebPartDisplayMode.cs
- UDPClient.cs
- IisTraceListener.cs
- ContainerFilterService.cs
- SignedXml.cs
- DbMetaDataFactory.cs
- TdsParserHelperClasses.cs
- TaskFileService.cs
- ClientUriBehavior.cs
- InstancePersistenceCommandException.cs
- ProcessProtocolHandler.cs
- CompareInfo.cs
- SerialErrors.cs
- ActivationArguments.cs
- XmlUtil.cs
- SamlAction.cs
- ActivityCodeGenerator.cs
- NamedPipeTransportManager.cs
- EdmMember.cs
- ServiceSecurityAuditBehavior.cs
- StorageModelBuildProvider.cs
- ApplicationSecurityManager.cs
- SortKey.cs
- XsltQilFactory.cs
- ActivityInstance.cs
- DataObjectAttribute.cs
- PersistenceMetadataNamespace.cs
- TraceHandlerErrorFormatter.cs
- ValidatingPropertiesEventArgs.cs
- XmlSchemaComplexContentRestriction.cs
- HtmlInputRadioButton.cs
- ObjectTokenCategory.cs
- xml.cs
- IisTraceListener.cs
- Rotation3D.cs
- ToolStripGripRenderEventArgs.cs
- ZipPackage.cs
- XmlDigitalSignatureProcessor.cs
- XmlSchemaAll.cs
- PointValueSerializer.cs
- TextServicesHost.cs
- Crc32.cs
- TextView.cs
- SecurityMessageProperty.cs
- SHA384Managed.cs
- SafeNativeMemoryHandle.cs
- FilteredXmlReader.cs
- PropertyKey.cs
- MemoryResponseElement.cs
- PaginationProgressEventArgs.cs
- GenericFlowSwitchHelper.cs
- SecurityTokenRequirement.cs
- TemplatedAdorner.cs
- BitmapEffect.cs
- DocumentOrderQuery.cs
- XmlNamedNodeMap.cs
- PointKeyFrameCollection.cs
- PropertyGridView.cs
- ErrorWrapper.cs
- PasswordRecovery.cs
- Compiler.cs
- EmptyControlCollection.cs
- DefaultBindingPropertyAttribute.cs
- ResolveCriteria.cs
- WebControlParameterProxy.cs
- ErrorFormatter.cs
- TargetInvocationException.cs
- DropSource.cs
- AutomationTextAttribute.cs