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
- HtmlTableCell.cs
- wmiprovider.cs
- CardSpaceShim.cs
- SystemColorTracker.cs
- ValidatingReaderNodeData.cs
- Win32Native.cs
- DataTemplateKey.cs
- SchemaType.cs
- RepeaterDataBoundAdapter.cs
- GeometryCollection.cs
- EdmType.cs
- Monitor.cs
- PageParserFilter.cs
- MappingSource.cs
- PropertyDescriptorComparer.cs
- IInstanceTable.cs
- HtmlGenericControl.cs
- XmlException.cs
- TokenBasedSetEnumerator.cs
- SqlCacheDependencySection.cs
- VirtualPath.cs
- TogglePatternIdentifiers.cs
- HttpDictionary.cs
- WinFormsComponentEditor.cs
- WebBaseEventKeyComparer.cs
- AssemblyName.cs
- SafeCryptoKeyHandle.cs
- Canvas.cs
- StandardMenuStripVerb.cs
- HttpWebRequestElement.cs
- CalendarButton.cs
- LinqDataSourceInsertEventArgs.cs
- VisualTransition.cs
- BindingNavigatorDesigner.cs
- DataGridPageChangedEventArgs.cs
- HttpCookiesSection.cs
- SelectionListComponentEditor.cs
- WindowsFormsLinkLabel.cs
- ExpressionsCollectionConverter.cs
- DataSourceControlBuilder.cs
- InternalSendMessage.cs
- BindingsCollection.cs
- HttpWebRequestElement.cs
- ToolStripRendererSwitcher.cs
- CornerRadius.cs
- EntitySet.cs
- BuiltInPermissionSets.cs
- ReflectionHelper.cs
- MediaTimeline.cs
- EnumType.cs
- ListBindingHelper.cs
- ListParagraph.cs
- SiteMapProvider.cs
- AccessText.cs
- GradientStop.cs
- WaitHandle.cs
- DbTypeMap.cs
- CodeAttributeDeclaration.cs
- TraceContextEventArgs.cs
- ApplicationProxyInternal.cs
- userdatakeys.cs
- Quaternion.cs
- DataRelationCollection.cs
- DragEventArgs.cs
- FormDesigner.cs
- securitycriticaldataClass.cs
- SortQuery.cs
- TextModifierScope.cs
- CodeCommentStatementCollection.cs
- Codec.cs
- FileDialogCustomPlacesCollection.cs
- TextBoxView.cs
- MessageSmuggler.cs
- DesignerVerb.cs
- ValidatingReaderNodeData.cs
- SoapCodeExporter.cs
- DataGridViewColumn.cs
- DataGridViewRow.cs
- ThemeConfigurationDialog.cs
- SelectedDatesCollection.cs
- SrgsSemanticInterpretationTag.cs
- printdlgexmarshaler.cs
- InternalSafeNativeMethods.cs
- BindingNavigatorDesigner.cs
- EditingCoordinator.cs
- StoreContentChangedEventArgs.cs
- PageThemeParser.cs
- MsmqHostedTransportConfiguration.cs
- HotCommands.cs
- Normalization.cs
- SineEase.cs
- XmlAnyAttributeAttribute.cs
- ActivityInterfaces.cs
- SrgsElement.cs
- ImageCodecInfoPrivate.cs
- CommandLineParser.cs
- PackageRelationshipSelector.cs
- InternalDispatchObject.cs
- MessageDescriptionCollection.cs
- TextClipboardData.cs