Code:
/ DotNET / DotNET / 8.0 / untmp / WIN_WINDOWS / lh_tools_devdiv_wpf / Windows / wcp / 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 [....]/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
- CheckBoxList.cs
- HtmlLink.cs
- TemplatePropertyEntry.cs
- FileRecordSequenceHelper.cs
- SrgsSemanticInterpretationTag.cs
- LinkLabelLinkClickedEvent.cs
- ToolStripDropTargetManager.cs
- CompilerScopeManager.cs
- CrossContextChannel.cs
- FunctionDescription.cs
- FragmentNavigationEventArgs.cs
- EndPoint.cs
- List.cs
- XmlReflectionImporter.cs
- RepeaterItemEventArgs.cs
- MemberDescriptor.cs
- StickyNoteAnnotations.cs
- FrugalMap.cs
- PermissionSetTriple.cs
- SqlDataRecord.cs
- NoClickablePointException.cs
- ClipboardProcessor.cs
- WebPartExportVerb.cs
- EnumerationRangeValidationUtil.cs
- Funcletizer.cs
- ResetableIterator.cs
- PageRequestManager.cs
- Pts.cs
- DbBuffer.cs
- DataControlFieldCollection.cs
- HScrollProperties.cs
- TemplateComponentConnector.cs
- CompositeControlDesigner.cs
- RoleManagerSection.cs
- TextParagraph.cs
- BindingValueChangedEventArgs.cs
- ControlAdapter.cs
- Group.cs
- BamlLocalizer.cs
- TextEditorCopyPaste.cs
- SqlEnums.cs
- WebPartDesigner.cs
- XPathNodeHelper.cs
- ZipPackage.cs
- StringValueSerializer.cs
- AddToCollection.cs
- ExtensionFile.cs
- DesignerResources.cs
- XmlTextReader.cs
- SqlSupersetValidator.cs
- TextElementEditingBehaviorAttribute.cs
- OciLobLocator.cs
- ValueExpressions.cs
- DataTableMapping.cs
- OutOfProcStateClientManager.cs
- OLEDB_Enum.cs
- UnsafeNativeMethods.cs
- GlyphingCache.cs
- DataGridViewDataErrorEventArgs.cs
- SafeProcessHandle.cs
- ProcessHostConfigUtils.cs
- TargetInvocationException.cs
- CompilerState.cs
- XmlSchemaObject.cs
- XmlCDATASection.cs
- SafeEventHandle.cs
- TextTreeUndoUnit.cs
- SQLDoubleStorage.cs
- _LocalDataStoreMgr.cs
- XmlDocumentSerializer.cs
- ImageBrush.cs
- JulianCalendar.cs
- WindowInteropHelper.cs
- MetaForeignKeyColumn.cs
- ChildChangedEventArgs.cs
- MultiByteCodec.cs
- SafeFindHandle.cs
- WindowPattern.cs
- CookieProtection.cs
- CallSite.cs
- FlagPanel.cs
- BindingMemberInfo.cs
- AsymmetricKeyExchangeFormatter.cs
- ProfileGroupSettings.cs
- WebPartDeleteVerb.cs
- Point3DCollectionConverter.cs
- ToolStripPanel.cs
- RightsManagementEncryptedStream.cs
- HttpsChannelListener.cs
- ModelPropertyDescriptor.cs
- CultureSpecificStringDictionary.cs
- ConnectionConsumerAttribute.cs
- DataServiceExpressionVisitor.cs
- LocalizeDesigner.cs
- DataGridColumn.cs
- ChannelCacheDefaults.cs
- DataSvcMapFileSerializer.cs
- ForeignConstraint.cs
- DocumentPageViewAutomationPeer.cs
- TextServicesHost.cs