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
- MissingMethodException.cs
- GridItem.cs
- PropertyGridEditorPart.cs
- WebServiceEnumData.cs
- ReadOnlyNameValueCollection.cs
- SafeWaitHandle.cs
- ServicePoint.cs
- NotifyCollectionChangedEventArgs.cs
- HyperLinkColumn.cs
- XmlSchemaObject.cs
- MachineKeySection.cs
- RequestFactory.cs
- FileRecordSequenceHelper.cs
- DataGridViewTextBoxEditingControl.cs
- DiscoveryReferences.cs
- ImageListUtils.cs
- MailMessageEventArgs.cs
- TripleDES.cs
- SessionEndedEventArgs.cs
- ManagementObject.cs
- Vector3dCollection.cs
- SurrogateEncoder.cs
- ThreadInterruptedException.cs
- SystemGatewayIPAddressInformation.cs
- AnnotationAuthorChangedEventArgs.cs
- ResourceIDHelper.cs
- SettingsPropertyValue.cs
- StrokeCollection2.cs
- EncryptedKeyHashIdentifierClause.cs
- CollectionBase.cs
- Funcletizer.cs
- PermissionAttributes.cs
- NamespaceCollection.cs
- Cursors.cs
- EntityWithKeyStrategy.cs
- CompilerWrapper.cs
- WindowsFormsHelpers.cs
- SettingsBase.cs
- panel.cs
- BufferedWebEventProvider.cs
- ValidationEventArgs.cs
- EntityDataSourceEntityTypeFilterItem.cs
- ColumnBinding.cs
- TextRangeProviderWrapper.cs
- TextTreeRootTextBlock.cs
- LinkDescriptor.cs
- IndividualDeviceConfig.cs
- WaitingCursor.cs
- AsyncResult.cs
- CodeRegionDirective.cs
- ViewDesigner.cs
- TableChangeProcessor.cs
- UIElementParagraph.cs
- AutomationPeer.cs
- SpeakCompletedEventArgs.cs
- ElementsClipboardData.cs
- ObjectDataSourceView.cs
- TimerElapsedEvenArgs.cs
- ExportOptions.cs
- DiscoveryOperationContext.cs
- RoleGroup.cs
- DBCommandBuilder.cs
- WasAdminWrapper.cs
- MessageSecurityProtocolFactory.cs
- ListSortDescriptionCollection.cs
- ComponentResourceKeyConverter.cs
- TypeExtension.cs
- Transform3DGroup.cs
- PropertyChangedEventManager.cs
- PropertyEntry.cs
- HttpPostedFile.cs
- SimpleModelProvider.cs
- PathFigureCollection.cs
- TreeViewCancelEvent.cs
- SafeFileMappingHandle.cs
- TeredoHelper.cs
- _NtlmClient.cs
- RewritingPass.cs
- CompensatableTransactionScopeActivityDesigner.cs
- PhysicalOps.cs
- shaper.cs
- CngProperty.cs
- SearchForVirtualItemEventArgs.cs
- TemplateControlBuildProvider.cs
- _FtpDataStream.cs
- ClusterSafeNativeMethods.cs
- ActivityScheduledQuery.cs
- CacheSection.cs
- MessagePartProtectionMode.cs
- MessageAction.cs
- EndpointInfoCollection.cs
- WebPartActionVerb.cs
- LongValidator.cs
- WithStatement.cs
- UserControlParser.cs
- FamilyCollection.cs
- SmtpMail.cs
- TreeNodeBinding.cs
- WebServiceErrorEvent.cs
- CacheForPrimitiveTypes.cs