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
- Control.cs
- RuntimeConfig.cs
- AsmxEndpointPickerExtension.cs
- DoubleConverter.cs
- ContextMenuAutomationPeer.cs
- ToolStripItemCollection.cs
- InheritedPropertyChangedEventArgs.cs
- PrintDocument.cs
- recordstatescratchpad.cs
- ServiceBusyException.cs
- LoginName.cs
- ObjectDataSourceStatusEventArgs.cs
- MetadataCollection.cs
- PrincipalPermission.cs
- MetadataFile.cs
- OuterGlowBitmapEffect.cs
- WebControlsSection.cs
- ProcessModule.cs
- GridEntry.cs
- TransportSecurityProtocol.cs
- DefinitionBase.cs
- PropertyItem.cs
- CheckBoxFlatAdapter.cs
- NonBatchDirectoryCompiler.cs
- _KerberosClient.cs
- DataKeyArray.cs
- assertwrapper.cs
- PreservationFileWriter.cs
- AuthenticateEventArgs.cs
- MimeMultiPart.cs
- Int32AnimationUsingKeyFrames.cs
- WebPageTraceListener.cs
- InvalidWorkflowException.cs
- DefaultBinder.cs
- coordinator.cs
- BmpBitmapEncoder.cs
- Brush.cs
- HtmlTable.cs
- Trace.cs
- GeometryDrawing.cs
- TreeView.cs
- VirtualPathUtility.cs
- CompilerErrorCollection.cs
- Identity.cs
- RegexWriter.cs
- HttpListenerTimeoutManager.cs
- IISMapPath.cs
- OleStrCAMarshaler.cs
- ProxyWebPartManager.cs
- Thread.cs
- WebServiceHostFactory.cs
- ContainerControl.cs
- ButtonBase.cs
- Package.cs
- QilReference.cs
- GeometryCombineModeValidation.cs
- WsatAdminException.cs
- SplineQuaternionKeyFrame.cs
- ObjectListDesigner.cs
- LinkLabelLinkClickedEvent.cs
- HandlerFactoryWrapper.cs
- TreeNodeCollection.cs
- SchemaComplexType.cs
- StickyNoteContentControl.cs
- InputScope.cs
- ReferenceService.cs
- HttpCacheVary.cs
- BooleanProjectedSlot.cs
- DataGridViewDataConnection.cs
- Nullable.cs
- httpapplicationstate.cs
- SystemThemeKey.cs
- HtmlGenericControl.cs
- MemberHolder.cs
- CommonDialog.cs
- XmlToDatasetMap.cs
- documentsequencetextpointer.cs
- XslCompiledTransform.cs
- AmbiguousMatchException.cs
- RijndaelCryptoServiceProvider.cs
- HtmlTable.cs
- StrokeCollection2.cs
- ProcessHostMapPath.cs
- XomlCompilerError.cs
- RegistrationServices.cs
- DataAccessor.cs
- CompositionAdorner.cs
- RootBuilder.cs
- IIS7UserPrincipal.cs
- DesignerTransaction.cs
- HttpConfigurationSystem.cs
- RichTextBoxConstants.cs
- CalculatedColumn.cs
- SQLDecimalStorage.cs
- PreProcessInputEventArgs.cs
- WindowsAuthenticationModule.cs
- DefinitionUpdate.cs
- BitmapPalette.cs
- BoundField.cs
- EnumerableRowCollection.cs