Code:
/ 4.0 / 4.0 / untmp / DEVDIV_TFS / Dev10 / Releases / RTMRel / wpf / src / Shared / MS / Internal / Generated / TextDecorationUnitValidation.cs / 1305600 / 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.
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- CodeTypeDeclarationCollection.cs
- EventSourceCreationData.cs
- SchemaObjectWriter.cs
- EntityModelSchemaGenerator.cs
- ColumnMapVisitor.cs
- mda.cs
- DataSourceView.cs
- ListDictionaryInternal.cs
- DataTablePropertyDescriptor.cs
- FormViewUpdateEventArgs.cs
- DocumentOutline.cs
- SimpleTypeResolver.cs
- DnsEndpointIdentity.cs
- ScrollChrome.cs
- XmlSchemaDocumentation.cs
- XmlSubtreeReader.cs
- TypeBuilder.cs
- CapabilitiesUse.cs
- CompilerWrapper.cs
- RecordBuilder.cs
- DocumentGridPage.cs
- SolidColorBrush.cs
- UnitControl.cs
- TextStore.cs
- ThreadLocal.cs
- DataListItem.cs
- SqlCharStream.cs
- EntityDataSourceDataSelectionPanel.designer.cs
- GiveFeedbackEvent.cs
- webeventbuffer.cs
- ControlUtil.cs
- ClientBuildManager.cs
- PhysicalFontFamily.cs
- Literal.cs
- Vector3DCollectionConverter.cs
- MessageDecoder.cs
- ObjectDataSourceMethodEditor.cs
- TableColumn.cs
- HttpModuleAction.cs
- MarshalDirectiveException.cs
- XmlBufferReader.cs
- FactoryMaker.cs
- XmlSchemaAttributeGroupRef.cs
- ScrollBar.cs
- SettingsBase.cs
- ServiceOperationParameter.cs
- XmlDataSourceNodeDescriptor.cs
- ToolStripDropTargetManager.cs
- PeerHelpers.cs
- ServiceDeploymentInfo.cs
- FacetValueContainer.cs
- XmlWrappingReader.cs
- DefaultProxySection.cs
- ConfigXmlSignificantWhitespace.cs
- TextRangeSerialization.cs
- AppDomainUnloadedException.cs
- AuthenticationServiceManager.cs
- TraceHandlerErrorFormatter.cs
- Proxy.cs
- AsynchronousChannel.cs
- XmlSchemaSubstitutionGroup.cs
- DispatcherFrame.cs
- SmtpAuthenticationManager.cs
- XPathSelectionIterator.cs
- LOSFormatter.cs
- MaskDesignerDialog.cs
- ColorConvertedBitmapExtension.cs
- SimpleWorkerRequest.cs
- TreeNodeStyleCollection.cs
- WebPartRestoreVerb.cs
- SmtpSection.cs
- ObjRef.cs
- CompositionTarget.cs
- HwndSource.cs
- SplitContainer.cs
- ObjectViewQueryResultData.cs
- XamlStream.cs
- OperationCanceledException.cs
- RightsManagementPermission.cs
- XPathDocument.cs
- unitconverter.cs
- CachedBitmap.cs
- ValueExpressions.cs
- NullPackagingPolicy.cs
- dsa.cs
- FormViewUpdateEventArgs.cs
- HighlightComponent.cs
- ToolboxItem.cs
- MatrixUtil.cs
- BufferedGraphicsContext.cs
- DirectionalLight.cs
- PropertyGridView.cs
- Profiler.cs
- IpcChannelHelper.cs
- DataFieldConverter.cs
- SpecularMaterial.cs
- TimeZone.cs
- SettingsPropertyCollection.cs
- BitmapFrameEncode.cs
- ParameterReplacerVisitor.cs