Code:
/ DotNET / DotNET / 8.0 / untmp / WIN_WINDOWS / lh_tools_devdiv_wpf / Windows / wcp / Core / System / Windows / Generated / TextDecoration.cs / 1 / TextDecoration.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 MS.Internal.PresentationCore;
using System;
using System.Collections;
using System.Collections.Generic;
using System.ComponentModel;
using System.ComponentModel.Design.Serialization;
using System.Diagnostics;
using System.Globalization;
using System.Reflection;
using System.Runtime.InteropServices;
using System.Windows.Media;
using System.Windows.Media.Animation;
using System.Windows.Media.Imaging;
using System.Windows.Markup;
using System.Windows.Converters;
using MS.Internal.Collections;
using MS.Utility;
using SR=MS.Internal.PresentationCore.SR;
using SRID=MS.Internal.PresentationCore.SRID;
// These types are aliased to match the unamanaged names used in interop
using BOOL = System.UInt32;
using WORD = System.UInt16;
using Float = System.Single;
namespace System.Windows
{
sealed partial class TextDecoration : Animatable
{
#region Constructors
//-----------------------------------------------------
//
// Constructors
//
//-----------------------------------------------------
#endregion Constructors
//------------------------------------------------------
//
// Public Methods
//
//-----------------------------------------------------
#region Public Methods
///
/// Shadows inherited Clone() with a strongly typed
/// version for convenience.
///
public new TextDecoration Clone()
{
return (TextDecoration)base.Clone();
}
///
/// Shadows inherited CloneCurrentValue() with a strongly typed
/// version for convenience.
///
public new TextDecoration CloneCurrentValue()
{
return (TextDecoration)base.CloneCurrentValue();
}
#endregion Public Methods
//------------------------------------------------------
//
// Public Properties
//
//------------------------------------------------------
#region Public Properties
///
/// Pen - Pen. Default value is null.
/// The pen used to draw the text decoration
///
public Pen Pen
{
get
{
return (Pen) GetValue(PenProperty);
}
set
{
SetValueInternal(PenProperty, value);
}
}
///
/// PenOffset - double. Default value is 0.0.
/// The offset of the text decoration to the location specified.
///
public double PenOffset
{
get
{
return (double) GetValue(PenOffsetProperty);
}
set
{
SetValueInternal(PenOffsetProperty, value);
}
}
///
/// PenOffsetUnit - TextDecorationUnit. Default value is TextDecorationUnit.FontRecommended.
/// The unit type we use to interpret the offset value.
///
public TextDecorationUnit PenOffsetUnit
{
get
{
return (TextDecorationUnit) GetValue(PenOffsetUnitProperty);
}
set
{
SetValueInternal(PenOffsetUnitProperty, value);
}
}
///
/// PenThicknessUnit - TextDecorationUnit. Default value is TextDecorationUnit.FontRecommended.
/// The unit type we use to interpret the thickness value.
///
public TextDecorationUnit PenThicknessUnit
{
get
{
return (TextDecorationUnit) GetValue(PenThicknessUnitProperty);
}
set
{
SetValueInternal(PenThicknessUnitProperty, value);
}
}
///
/// Location - TextDecorationLocation. Default value is TextDecorationLocation.Underline.
/// The Location of the text decorations
///
public TextDecorationLocation Location
{
get
{
return (TextDecorationLocation) GetValue(LocationProperty);
}
set
{
SetValueInternal(LocationProperty, value);
}
}
#endregion Public Properties
//-----------------------------------------------------
//
// Protected Methods
//
//------------------------------------------------------
#region Protected Methods
///
/// Implementation of Freezable.CreateInstanceCore .
///
/// The new Freezable.
protected override Freezable CreateInstanceCore()
{
return new TextDecoration();
}
#endregion ProtectedMethods
//-----------------------------------------------------
//
// Internal Methods
//
//-----------------------------------------------------
#region Internal Methods
#endregion Internal Methods
//-----------------------------------------------------
//
// Internal Properties
//
//------------------------------------------------------
#region Internal Properties
#endregion Internal Properties
//-----------------------------------------------------
//
// Dependency Properties
//
//------------------------------------------------------
#region Dependency Properties
///
/// The DependencyProperty for the TextDecoration.Pen property.
///
public static readonly DependencyProperty PenProperty
= RegisterProperty("Pen",
typeof(Pen),
typeof(TextDecoration),
null,
null,
null,
/* isIndependentlyAnimated = */ false,
/* coerceValueCallback */ null);
///
/// The DependencyProperty for the TextDecoration.PenOffset property.
///
public static readonly DependencyProperty PenOffsetProperty
= RegisterProperty("PenOffset",
typeof(double),
typeof(TextDecoration),
0.0,
null,
null,
/* isIndependentlyAnimated = */ false,
/* coerceValueCallback */ null);
///
/// The DependencyProperty for the TextDecoration.PenOffsetUnit property.
///
public static readonly DependencyProperty PenOffsetUnitProperty
= RegisterProperty("PenOffsetUnit",
typeof(TextDecorationUnit),
typeof(TextDecoration),
TextDecorationUnit.FontRecommended,
null,
new ValidateValueCallback(System.Windows.ValidateEnums.IsTextDecorationUnitValid),
/* isIndependentlyAnimated = */ false,
/* coerceValueCallback */ null);
///
/// The DependencyProperty for the TextDecoration.PenThicknessUnit property.
///
public static readonly DependencyProperty PenThicknessUnitProperty
= RegisterProperty("PenThicknessUnit",
typeof(TextDecorationUnit),
typeof(TextDecoration),
TextDecorationUnit.FontRecommended,
null,
new ValidateValueCallback(System.Windows.ValidateEnums.IsTextDecorationUnitValid),
/* isIndependentlyAnimated = */ false,
/* coerceValueCallback */ null);
///
/// The DependencyProperty for the TextDecoration.Location property.
///
public static readonly DependencyProperty LocationProperty
= RegisterProperty("Location",
typeof(TextDecorationLocation),
typeof(TextDecoration),
TextDecorationLocation.Underline,
null,
new ValidateValueCallback(System.Windows.ValidateEnums.IsTextDecorationLocationValid),
/* isIndependentlyAnimated = */ false,
/* coerceValueCallback */ null);
#endregion Dependency Properties
//------------------------------------------------------
//
// Internal Fields
//
//-----------------------------------------------------
#region Internal Fields
internal const double c_PenOffset = 0.0;
internal const TextDecorationUnit c_PenOffsetUnit = TextDecorationUnit.FontRecommended;
internal const TextDecorationUnit c_PenThicknessUnit = TextDecorationUnit.FontRecommended;
internal const TextDecorationLocation c_Location = TextDecorationLocation.Underline;
#endregion Internal Fields
}
}
// 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
- PreviousTrackingServiceAttribute.cs
- LinkLabel.cs
- CacheAxisQuery.cs
- XmlQueryTypeFactory.cs
- QuaternionAnimation.cs
- ServiceModelConfigurationElementCollection.cs
- NavigationHelper.cs
- DecimalAnimation.cs
- UpdateTracker.cs
- ContainerVisual.cs
- SafeMILHandle.cs
- GridView.cs
- LiteralLink.cs
- PointLight.cs
- GatewayIPAddressInformationCollection.cs
- OracleBoolean.cs
- RefType.cs
- CanonicalFormWriter.cs
- RepeatBehavior.cs
- HtmlToClrEventProxy.cs
- CloseSequence.cs
- DecimalConverter.cs
- SpecialNameAttribute.cs
- XmlElementAttribute.cs
- ToolStripGripRenderEventArgs.cs
- HostingEnvironment.cs
- ClientScriptManager.cs
- SmtpNetworkElement.cs
- BitmapEncoder.cs
- SafeThreadHandle.cs
- RectAnimation.cs
- CollectionBuilder.cs
- ProviderConnectionPoint.cs
- listitem.cs
- FormsAuthenticationCredentials.cs
- WorkflowTransactionOptions.cs
- PropertyMetadata.cs
- SourceSwitch.cs
- TableProviderWrapper.cs
- ListBoxItemAutomationPeer.cs
- mediaeventshelper.cs
- CharAnimationBase.cs
- BehaviorEditorPart.cs
- ComPlusInstanceProvider.cs
- TableCellAutomationPeer.cs
- ViewRendering.cs
- ByValueEqualityComparer.cs
- DelegateBodyWriter.cs
- RestHandler.cs
- FormatConvertedBitmap.cs
- DelegatingHeader.cs
- MimePart.cs
- SafeRightsManagementHandle.cs
- WorkflowApplicationTerminatedException.cs
- HttpBindingExtension.cs
- VersionedStream.cs
- StringValidatorAttribute.cs
- PropertiesTab.cs
- _Events.cs
- TextClipboardData.cs
- StandardToolWindows.cs
- SplitterEvent.cs
- ProxyAttribute.cs
- OrderPreservingSpoolingTask.cs
- GridViewColumnHeaderAutomationPeer.cs
- XmlNodeList.cs
- PTConverter.cs
- Clause.cs
- DetailsViewRowCollection.cs
- DocumentViewerBaseAutomationPeer.cs
- WebBrowserContainer.cs
- WebPartConnectionCollection.cs
- ReaderWriterLock.cs
- ListSortDescription.cs
- DispatcherTimer.cs
- ResourcePart.cs
- RegisteredDisposeScript.cs
- TextSelectionHighlightLayer.cs
- NumberFormatInfo.cs
- BindUriHelper.cs
- GuidTagList.cs
- basevalidator.cs
- GlyphShapingProperties.cs
- ImageList.cs
- SurrogateDataContract.cs
- SiteMapPath.cs
- HScrollProperties.cs
- WebBrowserSiteBase.cs
- EnvelopedPkcs7.cs
- AsyncDataRequest.cs
- SourceFileInfo.cs
- XMLUtil.cs
- ButtonFlatAdapter.cs
- ResourceDescriptionAttribute.cs
- DbConvert.cs
- StringFunctions.cs
- MenuCommandsChangedEventArgs.cs
- ThumbAutomationPeer.cs
- CharAnimationUsingKeyFrames.cs
- EastAsianLunisolarCalendar.cs