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
- SessionPageStateSection.cs
- DataGridAutoFormat.cs
- DbgUtil.cs
- CustomMenuItemCollection.cs
- ManualResetEvent.cs
- ProcessModuleCollection.cs
- EncodingTable.cs
- OracleTimeSpan.cs
- References.cs
- CodeDirectionExpression.cs
- XPathExpr.cs
- StringWriter.cs
- QilIterator.cs
- PlatformCulture.cs
- Freezable.cs
- NotifyInputEventArgs.cs
- Types.cs
- AppDomainAttributes.cs
- ListViewCancelEventArgs.cs
- ServiceInfo.cs
- processwaithandle.cs
- PrintPreviewControl.cs
- NamedObject.cs
- ColorPalette.cs
- ExpressionEditorAttribute.cs
- WebPartEventArgs.cs
- FunctionQuery.cs
- SqlErrorCollection.cs
- DBPropSet.cs
- TextPointerBase.cs
- LocalizableAttribute.cs
- CompiledQuery.cs
- DataGridViewImageCell.cs
- PartitionedStreamMerger.cs
- Label.cs
- GuidelineCollection.cs
- ConfigurationSectionGroupCollection.cs
- DataGridViewRowErrorTextNeededEventArgs.cs
- ColumnResult.cs
- BindableTemplateBuilder.cs
- HttpPostedFileWrapper.cs
- MultilineStringConverter.cs
- WsdlContractConversionContext.cs
- SystemNetHelpers.cs
- TextShapeableCharacters.cs
- Error.cs
- TrackingRecord.cs
- SafeSecurityHandles.cs
- AdapterUtil.cs
- OleDbConnection.cs
- Math.cs
- BufferedWebEventProvider.cs
- ControlDesigner.cs
- IntermediatePolicyValidator.cs
- KeyboardDevice.cs
- ClientCultureInfo.cs
- ReverseQueryOperator.cs
- XmlSerializationGeneratedCode.cs
- SchemaImporter.cs
- CorrelationManager.cs
- QuadraticEase.cs
- DataServiceConfiguration.cs
- DbModificationClause.cs
- ErrorItem.cs
- TableRowCollection.cs
- SettingsSection.cs
- X509Extension.cs
- TypeTypeConverter.cs
- SqlErrorCollection.cs
- WorkBatch.cs
- ProxyWebPartManager.cs
- ContextMenuService.cs
- IndexedGlyphRun.cs
- COMException.cs
- WebPartUserCapability.cs
- TypeElement.cs
- DesignSurfaceCollection.cs
- CodeMemberEvent.cs
- MenuAdapter.cs
- ColumnMap.cs
- AccessDataSourceWizardForm.cs
- PersonalizationStateQuery.cs
- CancellationTokenRegistration.cs
- ToolStripSettings.cs
- CompositeKey.cs
- SoapAttributes.cs
- SafeNativeMethodsOther.cs
- TCPListener.cs
- Ray3DHitTestResult.cs
- DbProviderFactoriesConfigurationHandler.cs
- Font.cs
- IsolatedStorage.cs
- ExpressionBinding.cs
- OleDbParameter.cs
- TextLineBreak.cs
- SafeBitVector32.cs
- PerfService.cs
- HttpHandlerAction.cs
- DataGridViewElement.cs
- SafeArrayTypeMismatchException.cs