Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / wpf / src / Shared / MS / Internal / Generated / GradientSpreadMethodValidation.cs / 1305600 / 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
- FileSystemEnumerable.cs
- WebPartCatalogAddVerb.cs
- ISCIIEncoding.cs
- FrameworkElement.cs
- WebPartAddingEventArgs.cs
- ScaleTransform.cs
- BaseDataList.cs
- columnmapfactory.cs
- PreviewPageInfo.cs
- NumericUpDownAccelerationCollection.cs
- ChangePassword.cs
- CollectionTypeElement.cs
- DependencyObject.cs
- TraversalRequest.cs
- PersonalizablePropertyEntry.cs
- hresults.cs
- InteropExecutor.cs
- BamlLocalizationDictionary.cs
- ModelItemKeyValuePair.cs
- ConfigurationValidatorAttribute.cs
- DesignerActionHeaderItem.cs
- UnsupportedPolicyOptionsException.cs
- MasterPageCodeDomTreeGenerator.cs
- SettingsPropertyWrongTypeException.cs
- DataIdProcessor.cs
- XPathScanner.cs
- WebPartTracker.cs
- AlphabetConverter.cs
- PointConverter.cs
- ContextBase.cs
- Predicate.cs
- sqlser.cs
- EventLog.cs
- ContainerUIElement3D.cs
- Enum.cs
- TypeDependencyAttribute.cs
- CalendarDayButton.cs
- AutoCompleteStringCollection.cs
- ToolStripItemTextRenderEventArgs.cs
- AsyncPostBackTrigger.cs
- SchemaUtility.cs
- PrintEvent.cs
- StringComparer.cs
- LayoutEngine.cs
- RowToFieldTransformer.cs
- ContentType.cs
- ImageClickEventArgs.cs
- MD5HashHelper.cs
- InternalResources.cs
- RectValueSerializer.cs
- PrintControllerWithStatusDialog.cs
- TypedElement.cs
- __ComObject.cs
- JsonCollectionDataContract.cs
- XmlSchemaRedefine.cs
- XamlGridLengthSerializer.cs
- BaseProcessProtocolHandler.cs
- ContextQuery.cs
- ExpandoObject.cs
- XLinq.cs
- AffineTransform3D.cs
- Interlocked.cs
- RegisteredScript.cs
- NullableLongSumAggregationOperator.cs
- _HeaderInfoTable.cs
- RangeValuePattern.cs
- ToolStripSplitButton.cs
- XmlDocumentSerializer.cs
- SessionPageStatePersister.cs
- DependsOnAttribute.cs
- RelationalExpressions.cs
- ScrollPatternIdentifiers.cs
- StreamWithDictionary.cs
- OracleRowUpdatedEventArgs.cs
- PrimitiveDataContract.cs
- OleDbConnectionInternal.cs
- QuaternionAnimation.cs
- AttachedPropertyMethodSelector.cs
- TemplateBindingExtensionConverter.cs
- PrimitiveSchema.cs
- DataSourceControl.cs
- TimerElapsedEvenArgs.cs
- wgx_sdk_version.cs
- SqlUtils.cs
- SetterBase.cs
- SAPICategories.cs
- AttachmentService.cs
- ListViewInsertedEventArgs.cs
- ScriptBehaviorDescriptor.cs
- InkCanvasSelection.cs
- LinqDataSourceUpdateEventArgs.cs
- ArraySet.cs
- SqlConnectionHelper.cs
- SQLByte.cs
- CultureInfo.cs
- ResXResourceReader.cs
- WindowsAltTab.cs
- TabPanel.cs
- ObjectResult.cs
- CheckedPointers.cs