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
- DataGridViewDataErrorEventArgs.cs
- FileDialog.cs
- SoapSchemaImporter.cs
- SHA512Managed.cs
- CollectionViewProxy.cs
- ControlType.cs
- InitializerFacet.cs
- CatalogPartCollection.cs
- DataBindEngine.cs
- Dynamic.cs
- XDeferredAxisSource.cs
- Int32AnimationBase.cs
- TextAction.cs
- ArrayList.cs
- ImageConverter.cs
- TaiwanLunisolarCalendar.cs
- NGCPageContentSerializerAsync.cs
- IndependentlyAnimatedPropertyMetadata.cs
- RegexCaptureCollection.cs
- RotateTransform.cs
- CryptoApi.cs
- MachineSettingsSection.cs
- ImageListUtils.cs
- Site.cs
- SafePointer.cs
- UpdateCommand.cs
- GridViewCancelEditEventArgs.cs
- SqlUtil.cs
- DataServiceCollectionOfT.cs
- UpdatePanelTriggerCollection.cs
- DrawingImage.cs
- SqlDataSourceTableQuery.cs
- GestureRecognitionResult.cs
- DbProviderManifest.cs
- SqlDataSourceQueryConverter.cs
- AppendHelper.cs
- FileDialog_Vista.cs
- IfAction.cs
- GuidTagList.cs
- OutOfMemoryException.cs
- MdImport.cs
- IfJoinedCondition.cs
- ClientData.cs
- SocketElement.cs
- VisualBrush.cs
- MdImport.cs
- CompleteWizardStep.cs
- AssemblyBuilder.cs
- MissingMethodException.cs
- MethodMessage.cs
- PointLightBase.cs
- DataGrid.cs
- RequestStatusBarUpdateEventArgs.cs
- OdbcUtils.cs
- AttributeCollection.cs
- Base64Encoder.cs
- UdpChannelFactory.cs
- SrgsElementList.cs
- PolyQuadraticBezierSegment.cs
- TextRange.cs
- BamlResourceSerializer.cs
- SuppressIldasmAttribute.cs
- LowerCaseStringConverter.cs
- EntityWrapper.cs
- ControlPager.cs
- TypedReference.cs
- GridViewPageEventArgs.cs
- EventProviderWriter.cs
- SymbolPair.cs
- SecurityHeaderTokenResolver.cs
- RepeaterCommandEventArgs.cs
- TrackingServices.cs
- PackagePartCollection.cs
- XmlBoundElement.cs
- EventBuilder.cs
- OdbcEnvironment.cs
- TextEndOfLine.cs
- ChannelBinding.cs
- GridViewColumnCollectionChangedEventArgs.cs
- StateBag.cs
- HandleExceptionArgs.cs
- SelectionEditor.cs
- LOSFormatter.cs
- CatalogPart.cs
- RuntimeWrappedException.cs
- InteropEnvironment.cs
- EntityConnection.cs
- DataGridViewRowHeightInfoNeededEventArgs.cs
- TextStore.cs
- HttpRuntime.cs
- HttpModule.cs
- Convert.cs
- KeyValuePair.cs
- TableLayoutRowStyleCollection.cs
- CodeTypeParameterCollection.cs
- Variant.cs
- PrinterUnitConvert.cs
- AdornedElementPlaceholder.cs
- RsaSecurityKey.cs
- InternalException.cs