Code:
/ DotNET / DotNET / 8.0 / untmp / WIN_WINDOWS / lh_tools_devdiv_wpf / Windows / wcp / Core / System / Windows / Media / TextEffect.cs / 1 / TextEffect.cs
//------------------------------------------------------------------------
//
// Microsoft Windows Client Platform
// Copyright (C) Microsoft Corporation, 2001
//
// File: TextEffect.cs
//
// Contents: TextEffect class
//
// Created: 3/23/2004 [....]
//
//-----------------------------------------------------------------------
using System;
using System.Diagnostics;
using System.Runtime.InteropServices;
using System.Windows;
using System.Collections;
using System.Windows.Media;
using System.Windows.Media.Animation;
using System.Windows.Markup;
using System.ComponentModel;
using SR=MS.Internal.PresentationCore.SR;
using SRID=MS.Internal.PresentationCore.SRID;
namespace System.Windows.Media
{
///
/// The class definition for TextEffect
///
[Localizability(LocalizationCategory.None, Readability=Readability.Unreadable)]
public partial class TextEffect : Animatable
{
//----------------------------------------
// constructor
//----------------------------------------
///
/// Constructor to TextEffect
///
/// transform of the text effect
/// foreground of the text effect
/// clip of the text effect
/// starting character index of the text effect
/// number of code points
public TextEffect(
Transform transform,
Brush foreground,
Geometry clip,
int positionStart,
int positionCount
)
{
if (positionCount < 0)
{
throw new ArgumentOutOfRangeException("positionCount", SR.Get(SRID.ParameterCannotBeNegative));
}
Transform = transform;
Foreground = foreground;
Clip = clip;
PositionStart = positionStart;
PositionCount = positionCount;
}
///
/// constructor
///
public TextEffect()
{
}
//-------------------------------
// Private method
//-------------------------------
private static bool OnPositionStartChanging(int value)
{
return (value >= 0);
}
private static bool OnPositionCountChanging(int value)
{
return (value >= 0);
}
}
}
// 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
- HttpResponse.cs
- DataTableExtensions.cs
- DefaultValueConverter.cs
- DataGridTablesFactory.cs
- CryptoStream.cs
- SafeArrayRankMismatchException.cs
- AppLevelCompilationSectionCache.cs
- SpecularMaterial.cs
- sqlmetadatafactory.cs
- Convert.cs
- DesignerDataStoredProcedure.cs
- TypeConverterAttribute.cs
- InstanceHandleConflictException.cs
- DotNetATv1WindowsLogEntryDeserializer.cs
- TrackingExtract.cs
- HttpWriter.cs
- Validator.cs
- ElementMarkupObject.cs
- GrammarBuilderRuleRef.cs
- CryptoHandle.cs
- ByteKeyFrameCollection.cs
- PropertyChangingEventArgs.cs
- ThicknessAnimationBase.cs
- PackageStore.cs
- Brushes.cs
- TrustManager.cs
- BevelBitmapEffect.cs
- ColorTranslator.cs
- MULTI_QI.cs
- CultureTableRecord.cs
- ResXResourceSet.cs
- RelationshipDetailsCollection.cs
- WindowsGrip.cs
- StyleTypedPropertyAttribute.cs
- XmlHierarchicalEnumerable.cs
- PingReply.cs
- TextTreeExtractElementUndoUnit.cs
- XmlElementAttribute.cs
- ListViewUpdatedEventArgs.cs
- PropertyReferenceSerializer.cs
- OdbcErrorCollection.cs
- Message.cs
- CustomBindingCollectionElement.cs
- ExtractorMetadata.cs
- ApplicationInfo.cs
- PartialArray.cs
- ListGeneralPage.cs
- SqlDataAdapter.cs
- DesignerCategoryAttribute.cs
- OdbcParameter.cs
- DbConnectionPoolGroup.cs
- GlyphShapingProperties.cs
- FolderBrowserDialog.cs
- BooleanProjectedSlot.cs
- UIElement3D.cs
- EventLogEntry.cs
- ConfigurationStrings.cs
- NeedSkipTokenVisitor.cs
- IList.cs
- CompiledIdentityConstraint.cs
- XmlWhitespace.cs
- TemplateInstanceAttribute.cs
- UxThemeWrapper.cs
- Helper.cs
- SkinIDTypeConverter.cs
- ValidatingReaderNodeData.cs
- Vector3DAnimationBase.cs
- ImageKeyConverter.cs
- EntityCommandDefinition.cs
- EmptyStringExpandableObjectConverter.cs
- TargetInvocationException.cs
- SizeConverter.cs
- WebBrowserSiteBase.cs
- DriveNotFoundException.cs
- SymbolEqualComparer.cs
- DomainLiteralReader.cs
- LinqDataSourceValidationException.cs
- DescriptionAttribute.cs
- Model3DCollection.cs
- Win32MouseDevice.cs
- SqlServer2KCompatibilityAnnotation.cs
- Optimizer.cs
- CommentEmitter.cs
- ViewUtilities.cs
- ToolStripPanelRow.cs
- UriSection.cs
- StatusBarDrawItemEvent.cs
- SoapRpcServiceAttribute.cs
- DataTableReaderListener.cs
- XmlSchemaDatatype.cs
- PageThemeBuildProvider.cs
- CompositeKey.cs
- BamlLocalizer.cs
- MultiView.cs
- NavigationEventArgs.cs
- _TLSstream.cs
- HMACSHA256.cs
- XmlQueryType.cs
- EventSetter.cs
- RtfToXamlReader.cs