Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / Orcas / QFE / 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
- DelegatingStream.cs
- DbProviderFactories.cs
- DataBoundControlHelper.cs
- TextServicesDisplayAttributePropertyRanges.cs
- SoapServerMethod.cs
- DefaultBindingPropertyAttribute.cs
- CompilerCollection.cs
- ScopedKnownTypes.cs
- DataExpression.cs
- SqlCacheDependencySection.cs
- XamlPathDataSerializer.cs
- CodeGeneratorOptions.cs
- PartitionedDataSource.cs
- GridPattern.cs
- SoapEnvelopeProcessingElement.cs
- ToolStripRenderEventArgs.cs
- OrderByQueryOptionExpression.cs
- GenericPrincipal.cs
- Rectangle.cs
- ProcessHostFactoryHelper.cs
- WebPartCatalogAddVerb.cs
- DataGridViewCellMouseEventArgs.cs
- ResourceCodeDomSerializer.cs
- Translator.cs
- XPathArrayIterator.cs
- DataGridClipboardHelper.cs
- ComEventsSink.cs
- ListViewItem.cs
- SettingsAttributes.cs
- Condition.cs
- Debug.cs
- SqlRewriteScalarSubqueries.cs
- SqlParameter.cs
- MeasureItemEvent.cs
- XmlSchemaCompilationSettings.cs
- ListItemConverter.cs
- NamespaceQuery.cs
- SafeNativeMethods.cs
- DataGridColumnCollection.cs
- XmlWriter.cs
- EntityDataSourceMemberPath.cs
- MonthChangedEventArgs.cs
- DesignerVerb.cs
- TransportListener.cs
- IndentedWriter.cs
- ColumnReorderedEventArgs.cs
- XmlDataProvider.cs
- ZipIOExtraFieldPaddingElement.cs
- RealizationContext.cs
- DataKey.cs
- BooleanProjectedSlot.cs
- ByteAnimation.cs
- SerialPinChanges.cs
- XslNumber.cs
- CommandValueSerializer.cs
- UdpDiscoveryEndpoint.cs
- RegexRunnerFactory.cs
- ExecutionEngineException.cs
- TypeConverters.cs
- AutomationEvent.cs
- SqlDependencyUtils.cs
- InputBindingCollection.cs
- FormViewAutoFormat.cs
- StrokeDescriptor.cs
- InfoCardArgumentException.cs
- SizeValueSerializer.cs
- _NegoStream.cs
- WindowsSpinner.cs
- EventWaitHandle.cs
- JobCollate.cs
- GridViewCellAutomationPeer.cs
- PassportAuthenticationModule.cs
- BindingBase.cs
- DateTimeUtil.cs
- StorageModelBuildProvider.cs
- DefaultAuthorizationContext.cs
- FieldDescriptor.cs
- MatrixUtil.cs
- Timeline.cs
- Stylesheet.cs
- EdmType.cs
- Matrix3D.cs
- OleServicesContext.cs
- MetadataItemEmitter.cs
- LightweightCodeGenerator.cs
- CorrelationToken.cs
- XamlHostingSection.cs
- XPathNodeInfoAtom.cs
- QuestionEventArgs.cs
- PrefixHandle.cs
- SchemaManager.cs
- SizeConverter.cs
- _IPv4Address.cs
- HttpListenerException.cs
- ComMethodElement.cs
- safelinkcollection.cs
- ServerValidateEventArgs.cs
- TreeView.cs
- SessionStateItemCollection.cs
- XPathAncestorIterator.cs