Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / Orcas / SP / 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
- SolidColorBrush.cs
- AccessControlList.cs
- PreviewPrintController.cs
- ConsoleEntryPoint.cs
- UIAgentAsyncBeginRequest.cs
- DataGridViewRowCollection.cs
- EraserBehavior.cs
- InputScopeNameConverter.cs
- IConvertible.cs
- TableItemProviderWrapper.cs
- TimeSpanSecondsConverter.cs
- SiteMapDataSourceDesigner.cs
- InstanceDescriptor.cs
- TraceFilter.cs
- ObjectDataSourceEventArgs.cs
- TaskSchedulerException.cs
- QilTernary.cs
- ControlPaint.cs
- ThreadStaticAttribute.cs
- CodeMethodInvokeExpression.cs
- XDeferredAxisSource.cs
- DiagnosticTrace.cs
- DataGridViewAutoSizeColumnsModeEventArgs.cs
- COM2IProvidePropertyBuilderHandler.cs
- FontCacheUtil.cs
- VisualStateChangedEventArgs.cs
- FolderBrowserDialog.cs
- StateRuntime.cs
- _UriTypeConverter.cs
- RegionData.cs
- FixedDocument.cs
- SafeFileHandle.cs
- SpellerHighlightLayer.cs
- Int32.cs
- DataGridViewComboBoxCell.cs
- OutputCacheSection.cs
- DiffuseMaterial.cs
- Viewport3DVisual.cs
- PersonalizationState.cs
- BinaryWriter.cs
- EndpointAddressMessageFilter.cs
- xsdvalidator.cs
- ProcessInfo.cs
- MarshalByValueComponent.cs
- ObjectToModelValueConverter.cs
- connectionpool.cs
- securitycriticaldataClass.cs
- MappedMetaModel.cs
- Brush.cs
- DragEvent.cs
- DesignerVerb.cs
- XmlUTF8TextWriter.cs
- filewebrequest.cs
- PhoneCall.cs
- wmiprovider.cs
- AssemblyInfo.cs
- UnsafeNativeMethods.cs
- XmlSchemaObjectCollection.cs
- DataGridHeaderBorder.cs
- EmptyQuery.cs
- SettingsPropertyIsReadOnlyException.cs
- InkCanvasSelectionAdorner.cs
- EventProviderBase.cs
- XmlCharacterData.cs
- SchemaImporterExtensionElement.cs
- PointValueSerializer.cs
- BamlLocalizableResource.cs
- GenericRootAutomationPeer.cs
- StatusBarPanelClickEvent.cs
- AssociatedControlConverter.cs
- SyndicationDeserializer.cs
- SplineKeyFrames.cs
- DisplayNameAttribute.cs
- Profiler.cs
- Typography.cs
- WebAdminConfigurationHelper.cs
- DefaultCommandConverter.cs
- ToolStripDropDownClosingEventArgs.cs
- Stack.cs
- PageThemeBuildProvider.cs
- VBCodeProvider.cs
- Monitor.cs
- ThemeConfigurationDialog.cs
- HttpRequestWrapper.cs
- MarshalDirectiveException.cs
- ColumnTypeConverter.cs
- complextypematerializer.cs
- ClientSideProviderDescription.cs
- TableRowCollection.cs
- GenerateScriptTypeAttribute.cs
- ConfigurationStrings.cs
- Currency.cs
- DataGridViewRowStateChangedEventArgs.cs
- PnrpPeerResolver.cs
- KeyedQueue.cs
- FontFamilyValueSerializer.cs
- SelectionWordBreaker.cs
- NotSupportedException.cs
- InternalsVisibleToAttribute.cs
- Buffer.cs