Code:
/ 4.0 / 4.0 / untmp / DEVDIV_TFS / Dev10 / Releases / RTMRel / wpf / src / Core / CSharp / System / Windows / Media / TextEffect.cs / 1305600 / TextEffect.cs
//------------------------------------------------------------------------
//
// Microsoft Windows Client Platform
// Copyright (C) Microsoft Corporation, 2001
//
// File: TextEffect.cs
//
// Contents: TextEffect class
//
// Created: 3/23/2004 garyyang
//
//-----------------------------------------------------------------------
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
- UpWmlMobileTextWriter.cs
- GregorianCalendar.cs
- CornerRadiusConverter.cs
- OverflowException.cs
- ClientScriptItemCollection.cs
- XmlSchemaSequence.cs
- GlyphingCache.cs
- XmlDataSourceView.cs
- CollectionChangeEventArgs.cs
- CrossSiteScriptingValidation.cs
- ScriptDescriptor.cs
- WindowInteropHelper.cs
- QueryResult.cs
- HwndSource.cs
- BroadcastEventHelper.cs
- _LocalDataStore.cs
- MessageFormatterConverter.cs
- ConfigurationStrings.cs
- HttpCapabilitiesSectionHandler.cs
- RelationshipConstraintValidator.cs
- StylusPointPropertyInfoDefaults.cs
- SafeCryptHandles.cs
- ToolboxItemWrapper.cs
- EndOfStreamException.cs
- AutomationElementCollection.cs
- EmptyEnumerator.cs
- Send.cs
- UrlAuthorizationModule.cs
- PieceNameHelper.cs
- ProcessHostServerConfig.cs
- XmlArrayItemAttribute.cs
- WindowsTokenRoleProvider.cs
- Size3D.cs
- SdlChannelSink.cs
- SiteMapNodeCollection.cs
- JoinSymbol.cs
- MessageBox.cs
- CancelEventArgs.cs
- OleDbDataAdapter.cs
- DriveInfo.cs
- DescendentsWalkerBase.cs
- GridViewDeleteEventArgs.cs
- ObjectTokenCategory.cs
- WindowsRegion.cs
- ControlBuilderAttribute.cs
- CustomAttributeFormatException.cs
- QilVisitor.cs
- DataGridViewBindingCompleteEventArgs.cs
- MissingMemberException.cs
- GridViewDeletedEventArgs.cs
- DataGridViewCellValidatingEventArgs.cs
- SByteStorage.cs
- ReadOnlyDataSource.cs
- WindowsEditBoxRange.cs
- Vars.cs
- DataProtection.cs
- IndicShape.cs
- ScrollProviderWrapper.cs
- XmlAnyAttributeAttribute.cs
- SpeechEvent.cs
- Deserializer.cs
- EditBehavior.cs
- PropertyEmitterBase.cs
- filewebresponse.cs
- InputBindingCollection.cs
- DeploymentSection.cs
- TraceContextRecord.cs
- TypeUnloadedException.cs
- SafeCryptHandles.cs
- AuthStoreRoleProvider.cs
- FilterFactory.cs
- DateTimeValueSerializerContext.cs
- CategoryEditor.cs
- FieldMetadata.cs
- MD5Cng.cs
- ThreadLocal.cs
- RadioButtonFlatAdapter.cs
- AutomationPattern.cs
- CommunicationObject.cs
- RootBuilder.cs
- WrappedIUnknown.cs
- XmlDataProvider.cs
- ServiceElement.cs
- InfoCardUIAgent.cs
- behaviorssection.cs
- ContentWrapperAttribute.cs
- ImageSource.cs
- BindingsCollection.cs
- MachineKey.cs
- FixedPosition.cs
- KnownIds.cs
- SubclassTypeValidator.cs
- CustomCategoryAttribute.cs
- SQLDouble.cs
- SubclassTypeValidatorAttribute.cs
- TimeZone.cs
- ManagedWndProcTracker.cs
- ClassImporter.cs
- Module.cs
- UntrustedRecipientException.cs