Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / wpf / src / Shared / MS / Internal / Generated / TextDecorationLocationValidation.cs / 1305600 / TextDecorationLocationValidation.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 { 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 IsTextDecorationLocationValid(object valueObject) { TextDecorationLocation value = (TextDecorationLocation) valueObject; return (value == TextDecorationLocation.Underline) || (value == TextDecorationLocation.OverLine) || (value == TextDecorationLocation.Strikethrough) || (value == TextDecorationLocation.Baseline); } } } // 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 { 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 IsTextDecorationLocationValid(object valueObject) { TextDecorationLocation value = (TextDecorationLocation) valueObject; return (value == TextDecorationLocation.Underline) || (value == TextDecorationLocation.OverLine) || (value == TextDecorationLocation.Strikethrough) || (value == TextDecorationLocation.Baseline); } } } // 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
- BaseCodePageEncoding.cs
- EdmComplexPropertyAttribute.cs
- SupportsEventValidationAttribute.cs
- OdbcPermission.cs
- ListCollectionView.cs
- OleDbSchemaGuid.cs
- RelatedCurrencyManager.cs
- OdbcCommand.cs
- BlobPersonalizationState.cs
- MenuBase.cs
- activationcontext.cs
- GeometryConverter.cs
- CodeDomSerializerBase.cs
- SafeNativeMethods.cs
- StateItem.cs
- DictionaryEntry.cs
- SqlSelectStatement.cs
- GC.cs
- Rfc2898DeriveBytes.cs
- CommonObjectSecurity.cs
- DataSourceControl.cs
- XPathNodePointer.cs
- AttachedAnnotation.cs
- MultiTouchSystemGestureLogic.cs
- OleDbPermission.cs
- AudioSignalProblemOccurredEventArgs.cs
- XamlSerializerUtil.cs
- UriExt.cs
- assemblycache.cs
- KeyProperty.cs
- ResourcePermissionBase.cs
- SapiAttributeParser.cs
- ProxyDataContractResolver.cs
- XMLDiffLoader.cs
- SpeechAudioFormatInfo.cs
- SmtpException.cs
- SQLInt64.cs
- UrlMappingsModule.cs
- Compilation.cs
- DbConnectionPoolIdentity.cs
- RijndaelManagedTransform.cs
- AccessorTable.cs
- WpfKnownTypeInvoker.cs
- StackBuilderSink.cs
- SiteMapHierarchicalDataSourceView.cs
- BaseTemplateBuildProvider.cs
- WebServiceEndpoint.cs
- DbModificationCommandTree.cs
- WebBrowserDesigner.cs
- PenThreadPool.cs
- ResourceSet.cs
- ButtonBase.cs
- ChtmlSelectionListAdapter.cs
- BitSet.cs
- Application.cs
- EntityDataSourceContainerNameConverter.cs
- EntityTypeBase.cs
- HighContrastHelper.cs
- ProviderUtil.cs
- LogicalCallContext.cs
- SliderAutomationPeer.cs
- PassportPrincipal.cs
- WebPartAuthorizationEventArgs.cs
- DynamicPropertyReader.cs
- SystemUnicastIPAddressInformation.cs
- Size3DConverter.cs
- DescendantBaseQuery.cs
- TableRow.cs
- WebControlAdapter.cs
- CryptoHandle.cs
- HtmlHistory.cs
- TypographyProperties.cs
- SettingsPropertyValueCollection.cs
- EventPrivateKey.cs
- MachineSettingsSection.cs
- FlowDocumentPage.cs
- Coordinator.cs
- RoleManagerSection.cs
- XmlCharCheckingReader.cs
- CounterSample.cs
- SocketPermission.cs
- Byte.cs
- SmtpMail.cs
- EntityTypeBase.cs
- HttpDebugHandler.cs
- Processor.cs
- ClientSession.cs
- ObjectListShowCommandsEventArgs.cs
- ResourceAssociationType.cs
- WpfWebRequestHelper.cs
- AuthenticationModeHelper.cs
- PropertyPath.cs
- SimpleBitVector32.cs
- OleDbRowUpdatingEvent.cs
- FixedSOMElement.cs
- SimpleParser.cs
- KnownBoxes.cs
- XmlDictionaryReader.cs
- Timer.cs
- ZoneMembershipCondition.cs