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
- DataGridViewRowHeightInfoPushedEventArgs.cs
- UnsafeNativeMethods.cs
- TemplateBindingExtensionConverter.cs
- BinaryConverter.cs
- MetadataWorkspace.cs
- QuaternionConverter.cs
- DirectoryNotFoundException.cs
- WebBrowsableAttribute.cs
- ComplexTypeEmitter.cs
- ThemeableAttribute.cs
- LexicalChunk.cs
- XmlSchemaAttribute.cs
- WindowsTreeView.cs
- ItemContainerPattern.cs
- AssemblyBuilder.cs
- columnmapkeybuilder.cs
- CodeIdentifiers.cs
- GetTokenRequest.cs
- XmlSerializerSection.cs
- HealthMonitoringSection.cs
- RtfToXamlLexer.cs
- ValueUtilsSmi.cs
- ServiceModelConfigurationSectionGroup.cs
- GeometryValueSerializer.cs
- MultipartContentParser.cs
- PropertyInformation.cs
- RelationshipNavigation.cs
- ToolStripManager.cs
- SystemResourceKey.cs
- UnitySerializationHolder.cs
- SettingsPropertyValue.cs
- AttributeUsageAttribute.cs
- StringConverter.cs
- PathParser.cs
- PackageProperties.cs
- VisualTransition.cs
- Floater.cs
- StdRegProviderWrapper.cs
- HtmlProps.cs
- DialogResultConverter.cs
- WebPartConnection.cs
- LambdaCompiler.ControlFlow.cs
- BoundsDrawingContextWalker.cs
- TagMapCollection.cs
- DockPanel.cs
- SingleObjectCollection.cs
- LineProperties.cs
- TypeBuilder.cs
- ParamArrayAttribute.cs
- PathTooLongException.cs
- XmlSignatureManifest.cs
- PinnedBufferMemoryStream.cs
- BitmapEffectvisualstate.cs
- XmlSerializableServices.cs
- AdornerPresentationContext.cs
- MgmtConfigurationRecord.cs
- WindowProviderWrapper.cs
- Visual3D.cs
- EventDescriptor.cs
- NetMsmqSecurityElement.cs
- DocumentAutomationPeer.cs
- OracleRowUpdatedEventArgs.cs
- DocumentOutline.cs
- GridViewAutoFormat.cs
- handlecollector.cs
- ProcessManager.cs
- SqlRecordBuffer.cs
- ConfigurationStrings.cs
- QilXmlWriter.cs
- ActivityBindForm.Designer.cs
- MdbDataFileEditor.cs
- sqlpipe.cs
- SQLString.cs
- DataGridViewCell.cs
- ObjectDataSourceMethodEventArgs.cs
- _UncName.cs
- TextHidden.cs
- GenericTypeParameterConverter.cs
- StorageInfo.cs
- HandoffBehavior.cs
- ContainerVisual.cs
- StringFormat.cs
- ReadOnlyKeyedCollection.cs
- ObjectConverter.cs
- OracleConnectionFactory.cs
- EntitySqlQueryBuilder.cs
- ArraySet.cs
- PopupRoot.cs
- Inline.cs
- StrongNameMembershipCondition.cs
- DisplayMemberTemplateSelector.cs
- ActionNotSupportedException.cs
- TransformProviderWrapper.cs
- _LazyAsyncResult.cs
- StringValueSerializer.cs
- CommandLibraryHelper.cs
- VariantWrapper.cs
- DefaultSettingsSection.cs
- Compilation.cs
- DataGridTextBox.cs