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
- TimeoutValidationAttribute.cs
- BitmapCache.cs
- ManualResetEvent.cs
- DataGridViewColumnStateChangedEventArgs.cs
- CacheMemory.cs
- _OverlappedAsyncResult.cs
- BaseDataBoundControlDesigner.cs
- SqlDependency.cs
- Preprocessor.cs
- TimeStampChecker.cs
- AssemblyCollection.cs
- ConnectionsZoneAutoFormat.cs
- ConditionChanges.cs
- CfgParser.cs
- SymmetricKeyWrap.cs
- SingleTagSectionHandler.cs
- WebBrowser.cs
- StylesEditorDialog.cs
- CodeSnippetStatement.cs
- ExecutionScope.cs
- PolicyValidationException.cs
- typedescriptorpermission.cs
- ValidationEventArgs.cs
- ConnectionStringsExpressionBuilder.cs
- StringConverter.cs
- ClientReliableChannelBinder.cs
- SymLanguageVendor.cs
- ContextMenuStripGroup.cs
- TextDecorationCollectionConverter.cs
- Ipv6Element.cs
- HtmlShimManager.cs
- ComponentEditorPage.cs
- AmbientLight.cs
- OracleRowUpdatingEventArgs.cs
- Faults.cs
- UpdateExpressionVisitor.cs
- ArrayHelper.cs
- ConsoleCancelEventArgs.cs
- TextCompositionEventArgs.cs
- EventLogPermission.cs
- ListBindingHelper.cs
- DataGridPageChangedEventArgs.cs
- StringReader.cs
- ReadOnlyHierarchicalDataSourceView.cs
- ColorMatrix.cs
- TextElementEnumerator.cs
- GroupedContextMenuStrip.cs
- OuterGlowBitmapEffect.cs
- EncoderExceptionFallback.cs
- ExceptionWrapper.cs
- SafeFindHandle.cs
- CLRBindingWorker.cs
- Preprocessor.cs
- MdiWindowListStrip.cs
- MethodCallConverter.cs
- Literal.cs
- WebPartConnectionsEventArgs.cs
- SinglePageViewer.cs
- ToolStripOverflowButton.cs
- MDIClient.cs
- AuthenticationSection.cs
- SessionParameter.cs
- DataGridViewCellStyle.cs
- WorkItem.cs
- CultureInfoConverter.cs
- WindowsScrollBar.cs
- _SpnDictionary.cs
- SqlMethodCallConverter.cs
- DataGridViewCell.cs
- ToolStripManager.cs
- RightsManagementInformation.cs
- WizardPanelChangingEventArgs.cs
- CalendarTable.cs
- BitmapCodecInfoInternal.cs
- ConfigurationStrings.cs
- _ListenerResponseStream.cs
- NeutralResourcesLanguageAttribute.cs
- QilLiteral.cs
- RectConverter.cs
- ComponentCommands.cs
- RegexWriter.cs
- ButtonColumn.cs
- ToolboxCategoryItems.cs
- SharedPersonalizationStateInfo.cs
- ConfigErrorGlyph.cs
- DynamicValidatorEventArgs.cs
- SQLChars.cs
- TrackingConditionCollection.cs
- PeerCollaborationPermission.cs
- OrderedDictionary.cs
- SafeCryptoKeyHandle.cs
- DataGridViewCellStyleContentChangedEventArgs.cs
- HtmlImage.cs
- ThemeDictionaryExtension.cs
- dtdvalidator.cs
- WebBrowserSiteBase.cs
- CodeSnippetTypeMember.cs
- CompilerWrapper.cs
- TaskDesigner.cs
- RuleConditionDialog.Designer.cs