Code:
/ 4.0 / 4.0 / 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. //---------------------------------------------------------------------------- // //// 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
- DataGridViewMethods.cs
- PeerNameRecord.cs
- Compilation.cs
- DataSourceSelectArguments.cs
- HtmlTitle.cs
- TextFragmentEngine.cs
- Msec.cs
- FixUpCollection.cs
- ZipArchive.cs
- FilterableAttribute.cs
- RenderContext.cs
- TabControl.cs
- XmlBindingWorker.cs
- DictionarySectionHandler.cs
- MethodToken.cs
- SqlTopReducer.cs
- RoleGroupCollection.cs
- ObfuscateAssemblyAttribute.cs
- DataGridViewButtonCell.cs
- QilLoop.cs
- DeviceOverridableAttribute.cs
- EndPoint.cs
- XmlQueryContext.cs
- Internal.cs
- Command.cs
- DataGridRelationshipRow.cs
- AlignmentXValidation.cs
- XmlSchemaSimpleContentRestriction.cs
- KeyedCollection.cs
- DataGridViewElement.cs
- HttpWebRequest.cs
- _NtlmClient.cs
- ArraySegment.cs
- RemotingConfigParser.cs
- DefinitionProperties.cs
- PathData.cs
- ControlsConfig.cs
- IBuiltInEvidence.cs
- BitmapEffectOutputConnector.cs
- SqlReferenceCollection.cs
- XamlPointCollectionSerializer.cs
- IDispatchConstantAttribute.cs
- DataRelationCollection.cs
- ConfigXmlText.cs
- LogSwitch.cs
- RMEnrollmentPage1.cs
- ListBoxItem.cs
- Bitmap.cs
- UIElementPropertyUndoUnit.cs
- HtmlTableRowCollection.cs
- WebPartEventArgs.cs
- XPathNodePointer.cs
- Style.cs
- Context.cs
- ReferencedAssembly.cs
- ContextMenuAutomationPeer.cs
- PerformanceCounters.cs
- SurrogateEncoder.cs
- PropertyPushdownHelper.cs
- SoapCodeExporter.cs
- ToolboxComponentsCreatedEventArgs.cs
- BindingList.cs
- SqlParameterCollection.cs
- StaticTextPointer.cs
- Point3DAnimationUsingKeyFrames.cs
- BindingExpressionUncommonField.cs
- SafeSecurityHelper.cs
- UpDownBase.cs
- ApplicationContext.cs
- xdrvalidator.cs
- PersonalizationStateQuery.cs
- DataServiceQueryException.cs
- ObjectQuery.cs
- RawStylusSystemGestureInputReport.cs
- XmlHierarchicalEnumerable.cs
- ConnectionManager.cs
- DiagnosticsConfiguration.cs
- XLinq.cs
- AsyncStreamReader.cs
- XmlSchemaSet.cs
- SessionState.cs
- DataGridViewHitTestInfo.cs
- DataServices.cs
- Journal.cs
- AuthenticationSection.cs
- CryptoHelper.cs
- HttpInputStream.cs
- GPPOINT.cs
- DebugHandleTracker.cs
- UIAgentAsyncEndRequest.cs
- newitemfactory.cs
- NamespaceInfo.cs
- DataGridViewRow.cs
- ClassImporter.cs
- DataSourceHelper.cs
- Propagator.ExtentPlaceholderCreator.cs
- GuidTagList.cs
- XmlSchemaAll.cs
- FormsAuthentication.cs
- HitTestWithPointDrawingContextWalker.cs