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
- PerfCounterSection.cs
- Run.cs
- SamlAudienceRestrictionCondition.cs
- DrawToolTipEventArgs.cs
- DataControlImageButton.cs
- NamedPermissionSet.cs
- EllipseGeometry.cs
- _SafeNetHandles.cs
- CacheMemory.cs
- ClipboardProcessor.cs
- WebResourceAttribute.cs
- Calendar.cs
- ResourcePropertyMemberCodeDomSerializer.cs
- UIPermission.cs
- CodeCommentStatementCollection.cs
- PropertyChangeTracker.cs
- InheritedPropertyChangedEventArgs.cs
- DiagnosticsConfigurationHandler.cs
- ImageButton.cs
- EdgeModeValidation.cs
- GlobalProxySelection.cs
- ConnectionStringsExpressionBuilder.cs
- TemplateBamlRecordReader.cs
- CalendarTable.cs
- PersonalizationProviderHelper.cs
- ButtonChrome.cs
- AudioFileOut.cs
- SelectionRange.cs
- OracleBinary.cs
- ComProxy.cs
- DictionarySectionHandler.cs
- MemoryStream.cs
- ThaiBuddhistCalendar.cs
- DeferredElementTreeState.cs
- dtdvalidator.cs
- SemanticBasicElement.cs
- XmlQualifiedName.cs
- TreeIterators.cs
- XmlSignatureProperties.cs
- RSAProtectedConfigurationProvider.cs
- Instrumentation.cs
- XamlNamespaceHelper.cs
- VariantWrapper.cs
- GenerateHelper.cs
- CodeThrowExceptionStatement.cs
- SqlDataSourceCommandEventArgs.cs
- Interop.cs
- SymbolMethod.cs
- PlaceHolder.cs
- ExpiredSecurityTokenException.cs
- XmlnsCache.cs
- ModuleElement.cs
- ConfigXmlText.cs
- ProcessingInstructionAction.cs
- Int64Animation.cs
- LocalFileSettingsProvider.cs
- SystemIcons.cs
- OpenTypeCommon.cs
- ClientOptions.cs
- XslAstAnalyzer.cs
- Base64Encoding.cs
- FlatButtonAppearance.cs
- CachedCompositeFamily.cs
- SerialStream.cs
- GridViewColumnCollection.cs
- SecurityTokenParameters.cs
- TimerElapsedEvenArgs.cs
- ClientApiGenerator.cs
- BinaryWriter.cs
- __Filters.cs
- Base64Encoder.cs
- XmlSchemaSubstitutionGroup.cs
- VisualStateChangedEventArgs.cs
- Point.cs
- SqlFactory.cs
- EnumConverter.cs
- InputBuffer.cs
- ClientType.cs
- SessionPageStateSection.cs
- _emptywebproxy.cs
- StringUtil.cs
- EncoderBestFitFallback.cs
- SchemaNames.cs
- DebugView.cs
- StructuredTypeEmitter.cs
- QilInvokeEarlyBound.cs
- UserPreferenceChangedEventArgs.cs
- ConsoleTraceListener.cs
- SubpageParagraph.cs
- EnumerableWrapperWeakToStrong.cs
- RSAPKCS1SignatureDeformatter.cs
- HashJoinQueryOperatorEnumerator.cs
- MouseEventArgs.cs
- WindowsListViewSubItem.cs
- TimeSpan.cs
- RequestCacheManager.cs
- FontFamily.cs
- FileDialog_Vista.cs
- TypeExtension.cs
- CollectionContainer.cs