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
- NativeMethods.cs
- FontSource.cs
- InstanceKeyCompleteException.cs
- XmlAnyElementAttributes.cs
- Profiler.cs
- ActivityExecutionContextCollection.cs
- FormClosingEvent.cs
- CanonicalFontFamilyReference.cs
- RawTextInputReport.cs
- DataTableCollection.cs
- WindowsGraphicsCacheManager.cs
- HttpMethodConstraint.cs
- NavigatingCancelEventArgs.cs
- CodeObjectCreateExpression.cs
- PropertyPathConverter.cs
- DocumentScope.cs
- BuildProviderAppliesToAttribute.cs
- TemplateField.cs
- TextStore.cs
- TempEnvironment.cs
- FileVersionInfo.cs
- baseaxisquery.cs
- WebContext.cs
- Int32CollectionValueSerializer.cs
- TypeGeneratedEventArgs.cs
- KoreanLunisolarCalendar.cs
- SelectionListDesigner.cs
- FactoryMaker.cs
- KeyboardEventArgs.cs
- SqlCommandSet.cs
- BookmarkManager.cs
- CharacterShapingProperties.cs
- FixedTextBuilder.cs
- EncoderParameters.cs
- SqlAliasesReferenced.cs
- TriggerCollection.cs
- StopStoryboard.cs
- CacheOutputQuery.cs
- basenumberconverter.cs
- CapabilitiesPattern.cs
- CultureTableRecord.cs
- StaticExtension.cs
- ArglessEventHandlerProxy.cs
- RolePrincipal.cs
- AnimatedTypeHelpers.cs
- SpinLock.cs
- ObservableCollection.cs
- AssociationTypeEmitter.cs
- TextTreeRootTextBlock.cs
- DataBindingExpressionBuilder.cs
- QuaternionKeyFrameCollection.cs
- SqlUtil.cs
- XmlSchemaSimpleContent.cs
- HierarchicalDataTemplate.cs
- LinkedResource.cs
- TextServicesHost.cs
- IsolatedStoragePermission.cs
- MsmqIntegrationAppDomainProtocolHandler.cs
- NotifyIcon.cs
- DrawingAttributes.cs
- ArrangedElement.cs
- HtmlControlPersistable.cs
- X509Certificate2.cs
- QueryPageSettingsEventArgs.cs
- MultiView.cs
- Configuration.cs
- NamedPipeAppDomainProtocolHandler.cs
- FlowDocumentScrollViewerAutomationPeer.cs
- x509store.cs
- BlobPersonalizationState.cs
- WindowManager.cs
- EntityProviderServices.cs
- CqlWriter.cs
- IPAddress.cs
- EventRouteFactory.cs
- DisplayMemberTemplateSelector.cs
- RecordBuilder.cs
- DeclarativeCatalogPart.cs
- LocalizationParserHooks.cs
- OdbcHandle.cs
- SecurityKeyIdentifier.cs
- MouseDevice.cs
- ColorKeyFrameCollection.cs
- CellParaClient.cs
- Native.cs
- SerialErrors.cs
- DbConnectionPoolOptions.cs
- Frame.cs
- ExpressionParser.cs
- DomNameTable.cs
- NullRuntimeConfig.cs
- ControlBuilder.cs
- TextModifier.cs
- _NetRes.cs
- IUnknownConstantAttribute.cs
- LoginView.cs
- StringToken.cs
- ToolStripOverflowButton.cs
- OdbcParameterCollection.cs
- ProfileService.cs