Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / Orcas / NetFXw7 / wpf / src / Shared / MS / Internal / Generated / TextDecorationUnitValidation.cs / 1 / TextDecorationUnitValidation.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 IsTextDecorationUnitValid(object valueObject) { TextDecorationUnit value = (TextDecorationUnit) valueObject; return (value == TextDecorationUnit.FontRecommended) || (value == TextDecorationUnit.FontRenderingEmSize) || (value == TextDecorationUnit.Pixel); } } } // 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 IsTextDecorationUnitValid(object valueObject) { TextDecorationUnit value = (TextDecorationUnit) valueObject; return (value == TextDecorationUnit.FontRecommended) || (value == TextDecorationUnit.FontRenderingEmSize) || (value == TextDecorationUnit.Pixel); } } } // 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
- TextElementEnumerator.cs
- ListView.cs
- SqlDataSourceCache.cs
- ProcessHost.cs
- dbenumerator.cs
- RightNameExpirationInfoPair.cs
- IndexedEnumerable.cs
- MergeFailedEvent.cs
- SmtpAuthenticationManager.cs
- PackWebResponse.cs
- MessagingDescriptionAttribute.cs
- SingleTagSectionHandler.cs
- Registry.cs
- FlowDocumentPaginator.cs
- MimeWriter.cs
- QilChoice.cs
- ByteStream.cs
- KeyedHashAlgorithm.cs
- AssemblyInfo.cs
- ResourceAssociationSet.cs
- MailDefinition.cs
- PasswordPropertyTextAttribute.cs
- MemberAccessException.cs
- PtsPage.cs
- ProfileSection.cs
- DataControlImageButton.cs
- StreamGeometry.cs
- TableRowCollection.cs
- Polygon.cs
- CodeMethodReturnStatement.cs
- TemplateColumn.cs
- MsmqIntegrationReceiveParameters.cs
- PropertyGridEditorPart.cs
- Rect3DValueSerializer.cs
- WebPartExportVerb.cs
- ToolTipAutomationPeer.cs
- BufferedWebEventProvider.cs
- CacheSection.cs
- ScriptReferenceEventArgs.cs
- TriggerBase.cs
- SqlBooleanizer.cs
- PropertyInformation.cs
- LocalizationCodeDomSerializer.cs
- HttpHeaderCollection.cs
- SettingsPropertyIsReadOnlyException.cs
- DPCustomTypeDescriptor.cs
- EncryptedReference.cs
- Logging.cs
- RestClientProxyHandler.cs
- DataReceivedEventArgs.cs
- AssemblySettingAttributes.cs
- EmissiveMaterial.cs
- cookieexception.cs
- TextShapeableCharacters.cs
- Image.cs
- SelectionItemProviderWrapper.cs
- URLAttribute.cs
- LocalizationComments.cs
- ProvidePropertyAttribute.cs
- UnknownWrapper.cs
- EmbeddedMailObjectCollectionEditor.cs
- ContentTextAutomationPeer.cs
- ClientScriptItem.cs
- SqlBulkCopy.cs
- TouchDevice.cs
- IdentifierService.cs
- DataGridViewAutoSizeColumnModeEventArgs.cs
- ReadWriteSpinLock.cs
- HandlerMappingMemo.cs
- InkPresenterAutomationPeer.cs
- PingOptions.cs
- XmlComplianceUtil.cs
- DataRecordInfo.cs
- XhtmlBasicPanelAdapter.cs
- PersonalizationStateInfo.cs
- NCryptSafeHandles.cs
- HtmlInputFile.cs
- AutoResetEvent.cs
- DecoderBestFitFallback.cs
- lengthconverter.cs
- TextOnlyOutput.cs
- RNGCryptoServiceProvider.cs
- DataTransferEventArgs.cs
- DefaultCompensation.cs
- FreezableDefaultValueFactory.cs
- HtmlInputHidden.cs
- GenericIdentity.cs
- AnimationLayer.cs
- QueryCoreOp.cs
- CreateRefExpr.cs
- TreeNodeBindingCollection.cs
- RoleManagerSection.cs
- ConnectionConsumerAttribute.cs
- InternalConfigConfigurationFactory.cs
- DataTableExtensions.cs
- ViewStateModeByIdAttribute.cs
- _ConnectionGroup.cs
- PrintDocument.cs
- DependencyObjectType.cs
- EntityUtil.cs